Re: Reading a file as it fills up by another program
Re: Reading a file as it fills up by another program
- Subject: Re: Reading a file as it fills up by another program
- From: Deivy Petrescu <email@hidden>
- Date: Fri, 12 Dec 2003 17:37:49 -0500
At 6:02 PM +0100 12/12/03, Harald E Brandt wrote:
+--> Walter Ian Kaye wrote 03-12-12:
Do you know if the piping occurs in real time?
If so, you could pipe to AppleScript...
+-
Hmm... Now I do not quite follow you... The Unix
process(es) are of course started from a 'do
shell script'. I want things back, but "piece by
piece" since I do not want to wait for the
process(es) to terminate after many seconds;
that calls for a loop in AppleScript that will
check progress status. Of course it would be
nice to check the input of some kind of "pipe"
back into AppleScript, but that is so far just a
dream, as far as I know...(?)
--heb
Harold,
you are not saying what kind of process(es) you
are starting in Unix and what do you want to do
with them.
I want to check some web sites using curl and
decide what to do based on the output.
do shell script "curl
http://www.this.site"
answer is 1 then do this with AppleScript
answer is 2 then do that with Applescript
blahblah
do shell script "cat ..."
I found the that shell works extremely fast in files.
if Unix is writing it writes to \tmp, you can
check to see if there is a logic to the name of
the file created. But I think this would be a
hard path to follow.
My thoughts, if you care.
Regards
Saudacoes
Deivy
http://www.dicas.com
--
_______________________________________________
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.