• 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
echoing multi-lines output from "do shell script"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

echoing multi-lines output from "do shell script"


  • Subject: echoing multi-lines output from "do shell script"
  • From: Richard Covert <email@hidden>
  • Date: Sun, 30 May 2004 14:42:13 -0500

I have an UNIX command that shows progress by echoing multiple lines to stdout.
How do I get AS to read each line as it is produced??

I could do a work around by redirecting stdout to a text file and then write an AS handler to
loop on that file until I read a line containing text indicating that the UNIX command has completed.
But then I would have to delete that temporary file.

Does anyone have a better way of monitoring stdout/stderr after issuing a "do shell script" AS statement??\

thanks
_______________________________________________
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.


  • Follow-Ups:
    • Re: echoing multi-lines output from "do shell script"
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: Mail signature script broken after X.3.4
  • Next by Date: Re: echoing multi-lines output from "do shell script"
  • Previous by thread: dumb question
  • Next by thread: Re: echoing multi-lines output from "do shell script"
  • Index(es):
    • Date
    • Thread