Re: do shell script without blocking?
Re: do shell script without blocking?
- Subject: Re: do shell script without blocking?
- From: Gnarlodious <email@hidden>
- Date: Wed, 16 Feb 2005 20:34:10 -0700
Entity Christopher Nebel spoke thus:
> "do shell script" watches the command's
> stdout and stderr, and blocks until they're both closed, effectively
> saying "There's no more data for you to read."
Is there a way using this construct to know when an operation is complete?
Because right now I'm using this gimmick:
repeat
try
do shell script "gzip -d < /private/tmp/" & fileName & " >>
~/Sites/Common/Data/" & domain & ".log"
exit repeat
on error
delay 5
end try
end repeat
Maybe there's a more elegant way to do it.
-- Gnarlie
http://Gnarlodious.com/Entities/Computer/Cube/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden