I have the Shrew client installed in order to connect to a cisco VPN.
(side note: anyconnect royally blows and I spent several hours trying to get it to work; I had shrew running within 2 minutes of installing it.)
Anyway, I can connect just fine and it works.
What I need to do is schedule the connection. For example, once a day I want a process to start shrew, auto connect to the vpn then run a SQL script. Once the script is finished I want shrew to disconnect from the VPN.
So far I have the following:
"C:\Program Files\ShrewSoft\VPN Client\ipsecc.exe" -r ClientSite -u MyUser -p MyPassword -a
When this runs, Shrew connects and starts the VPN interface. However, that line doesn't return until someone clicks the "disconnect" button.