Advertisement
the-technoholik

Cisco VPN client, vpnc

Feb 15th, 2015
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/usr/bin/expect -f
  2.  
  3. spawn /opt/cisco/anyconnect/bin/vpn
  4. expect VPN>
  5. send "connect thevpn.yourcompany.com\n"
  6. expect Group
  7. send "0\n" # Put the group here
  8. expect Username
  9. send "Your_Username_Goes_Here\n"
  10. expect Password
  11. send "Your_Password_Goes_Here\n"
  12. expect Connected
  13. expect VPN>
  14. send "q\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement