• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Reading a file as it fills up by another program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Reading a file as it fills up by another program (From: Harald E Brandt <email@hidden>)
 >Re: Reading a file as it fills up by another program (From: Christopher Stone <email@hidden>)
 >Re: Reading a file as it fills up by another program (From: Harald E Brandt <email@hidden>)
 >Re: Reading a file as it fills up by another program (From: Walter Ian Kaye <email@hidden>)
 >Re: Reading a file as it fills up by another program (From: Harald E Brandt <email@hidden>)

  • Prev by Date: Re: Insert text into a document (beginners Question)
  • Next by Date: Re: New AppleScript book
  • Previous by thread: Re: Reading a file as it fills up by another program
  • Next by thread: Re: Reading a file as it fills up by another program
  • Index(es):
    • Date
    • Thread