Skip to content

Instantly share code, notes, and snippets.

@Hyvi
Created February 27, 2011 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hyvi/846137 to your computer and use it in GitHub Desktop.
Save Hyvi/846137 to your computer and use it in GitHub Desktop.
test for gwf
spawn openvpn --config /etc/openvpn/Global.ovpn
#expect "[sudo] password for hyvi: "
#send "密码\n"
#sleep 2
expect "Enter Auth Username:"
send "邮箱\r"
sleep 2
expect "Enter Auth Password:"
send "密码\r"
expect eof
sleep 5
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment