Create vnc.exp

This commit is contained in:
qiaofeng1227 2022-11-16 10:23:35 +08:00 committed by GitHub
parent 4d4a5c0c26
commit 4136992d76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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;