vpnclient...
vpnclient...
- Subject: vpnclient...
- From: David Crowe <email@hidden>
- Date: Thu, 24 Jul 2003 12:00:07 -0600
I finally did manage to script the CISCO vpn client so that it would
run in parallel with my AppleScript.
The secret sauce is:
do shell script "(echo \"echo y | /usr/local/bin/vpnclient connect "
& theProfile & " user " & theUserName & " pwd " & thePassword & "\" |
login -f $USER ) >/tmp/startvpn.tmp 2>&1 &"
Obviously I'm not going to tell you what I set the parameters to :)
The temp file just contains complaints from the VPN client about
starting up without a real tty (but they can be ignored). I will
probably just route those to /dev/null eventually, but if anything
goes wrong having the output in a temporary file isn't a bad idea.
- David Crowe
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.