Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/expect
- set timeout 10
- spawn sudo openconnect ntuvpn.ntu.edu.sg --juniper
- expect "Password:"
- send "PWD\n"
- expect "Staff"
- send "Student\n"
- expect "username:"
- send "UNAME\n"
- expect "password:"
- send "PWD\n"
- interact
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement