Re: Running VPN client...
Re: Running VPN client...
- Subject: Re: Running VPN client...
- From: Christopher Nebel <email@hidden>
- Date: Mon, 14 Jul 2003 09:50:39 -0700
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.