• 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: do shell script without blocking?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: do shell script without blocking?
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: do shell script without blocking? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: ANN: Toggle Guest Access
  • Next by Date: Re: [OT] DeveloperTools Vs Xcode Tools VS X11
  • Previous by thread: Re: do shell script without blocking?
  • Next by thread: Re: do shell script without blocking?
  • Index(es):
    • Date
    • Thread