• 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: Wed, 16 Jul 2003 09:00:00 -0700

Emmanuel;

Ah, it's hard to be as obscure with AppleScript as with shell scripts, but perhaps if we try harder...

- David Crowe :)


At 12:46 AM +0200 7/15/03, Emmanuel wrote:
At 9:50 AM -0700 14/07/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 &"

phhhew

Thanks,
Emmanuel
_______________________________________________
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>)
 >Re: Running VPN client... (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: open location..
  • Next by Date: Bizarre behaviour with OSA Menu, Eudora 5.2 in Classic
  • Previous by thread: Re: Running VPN client...
  • Next by thread: Re: Running VPN client...
  • Index(es):
    • Date
    • Thread