mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 01:28:39 +08:00
Create vnc.exp
This commit is contained in:
parent
4d4a5c0c26
commit
4136992d76
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 New Issue
Block a user