• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
vpnclient...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: vpnclient...
      • From: Stephen Jonke <email@hidden>
  • Prev by Date: Re: dynamic variables
  • Next by Date: Re: dynamic variables
  • Previous by thread: Re: Scripting addition for MacOS X
  • Next by thread: Re: vpnclient...
  • Index(es):
    • Date
    • Thread