mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 17:10:27 +00:00
Create vnc.exp
This commit is contained in:
parent
4d4a5c0c26
commit
4136992d76
1 changed files with 13 additions and 0 deletions
13
apps/roles/os/files/vnc.exp
Normal file
13
apps/roles/os/files/vnc.exp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/expect -f
|
||||
set timeout 30
|
||||
spawn vncpasswd
|
||||
expect "Password"
|
||||
send "vnc123456\r"
|
||||
expect "Verify"
|
||||
send "vnc123456\r"
|
||||
expect "Would you like to enter a view-only password"
|
||||
send "n\r"
|
||||
|
||||
#interact
|
||||
expect eof
|
||||
catch wait result;
|
Loading…
Reference in a new issue