• 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: Emmanuel <email@hidden>
  • Date: Tue, 15 Jul 2003 00:46:18 +0200

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.

  • Follow-Ups:
    • Re: Running VPN client...
      • From: David Crowe <email@hidden>
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: Ethan's Mail
  • Next by Date: Re: getting multiple selected messages in Eudora?
  • Previous by thread: Re: Running VPN client...
  • Next by thread: Re: Running VPN client...
  • Index(es):
    • Date
    • Thread