Re: do shell procces in background
Re: do shell procces in background
- Subject: Re: do shell procces in background
- From: Emmanuel <email@hidden>
- Date: Wed, 24 Sep 2003 21:54:45 +0200
At 12:59 PM -0500 24/09/03, Martin Meneses wrote:
>
Hi, I'm working with "do shell " instruction, but I have problem when I send the remote command, the application wait until the command is executed. It doesn't release it.
>
>
I've read items of the technical Note TN2065 about backgroud process.
>
I tried this command:
>
do shell script "command > file_path 2>1 &"
Too ignorant to know whether that's relevant but I use one additional ampersand:
do shell script "command > file_path 2>&1 &"
About that, note the handy "smilepause" Smile's command which allows you to pause your script without blocking the machine:
-------------------- off the top of my head
repeat while command is in (do shell script "ps -auxc")
smilepause 0.1 -- other tasks run, including launching another script
end repeat
-- go on with that script, "command" is done
--------------------
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.