I am having a problem writing a script which will launch my callal VPN command line client and when this signal is available Then send your password. Here is my code:
#! / Usr / bin / expect -f set loadme "./forticlientsslvpncli --server myvpnserver - vpnuser theuser eval spawn $ loadme is expected" Password for VPN: "However, it still prompts for VPN password. That's something simple and I am quite new to Linux scripting, but any help would be greatly appreciated! Thanks!
#! / Usr / bin / expect -f set timeout-1 / CD / USR / local / forlilienslovepn spawn ./forticlientsslvpn_cli --server myhost: 10443 - VPNUUSE expects "password for VPN" for MyServer: sending "for this server" - expecting "mypassword \ r"} (w / n) \ r "{send -" y \ R "} Hope
No comments:
Post a Comment