Advertisement
Guest User

Untitled

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