mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 18:30:23 +08:00
14 lines
230 B
Plaintext
14 lines
230 B
Plaintext
#!/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;
|