• 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
Re: Running VPN client...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running VPN client...


  • Subject: Re: Running VPN client...
  • From: David Crowe <email@hidden>
  • Date: Mon, 14 Jul 2003 21:34:24 -0700

Chris;

Okay, I'll pick the "I was doing something obviously wrong" option.

Thanks for your help.

- David


At 9:50 AM -0700 7/14/03, Christopher Nebel wrote:
On Sunday, July 13, 2003, at 8:49 PM, David Crowe wrote:

I'm not so sure that "&" works as described in the Technote.

The command:

do shell script "sleep 60; echo done >/tmp/junk.junk 2>&1 &"

locks up the AppleScript for 60 seconds (rotating lollipop mode), just as if the "&" were not there. Perhaps, I thought, the "&" only applies to the echo command, so I tried:

do shell script "(sleep 60; echo done >/tmp/junk.junk 2>&1) &"

and, it did the same thing.

So close, and yet so far. The output redirect only applies to the command that it's next to, same as the "&", so adding the parentheses as you did is not what you wanted -- it only redirects the echo, so "do shell script" is going to wait on the sleep command.

This returns immediately, and spits "done" into /tmp/junk.junk 20 seconds later:

do shell script "(sleep 60; echo done) >/tmp/junk.junk 2>&1 &"


--Chris Nebel
Apple Development Tools
_______________________________________________
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.

References: 
 >Running VPN client... (From: David Crowe <email@hidden>)
 >Re: Running VPN client... (From: Emmanuel <email@hidden>)
 >Re: Running VPN client... (From: Christopher Nebel <email@hidden>)
 >Re: Running VPN client... (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: How to delete contents of folder in OS X?
  • Next by Date: Re: applescript-users digest, Vol 3 #1827 - 14 msgs
  • Previous by thread: Re: Running VPN client...
  • Next by thread: Re: Running VPN client...
  • Index(es):
    • Date
    • Thread