Re: Running VPN client...
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.