websoft9/apps/roles/os/files/vnc.exp
2022-11-16 10:23:35 +08:00

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;