SHOW:
|
|
- or go back to the newest paste.
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 |
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 | - | send "password |
9 | + | |
10 | send {$password}\n; | |
11 | ||
12 | interact |