Advertisement
Guest User

Untitled

a guest
Mar 28th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/usr/bin/expect
  2.  
  3. set timeout 10
  4. spawn sudo openconnect ntuvpn.ntu.edu.sg --juniper
  5.  
  6. expect "Password:"
  7. send "PWD\n"
  8.  
  9. expect "Staff"
  10. send "Student\n"
  11.  
  12. expect "username:"
  13. send "UNAME\n"
  14.  
  15. expect "password:"
  16. send "PWD\n"
  17.  
  18. interact
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement