Advertisement
Guest User

VPNscriptexpect

a guest
May 27th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. !/bin/expect -f
  2. set timeout 30
  3. log_user 0
  4.  
  5. puts stderr "Connecting to VPN Servername" spawn env "/root/bin/forticlientsslvpn/64bit/forticlientsslvpncli --server *serverIP* --vpnuser *Username_* --keepalive
  6.  
  7. expect "Password for VPN"
  8.  
  9. send "password
  10.  
  11. interact
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement