Display return values of shell script during execution

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hi,

I have some problems using a shell script and display the return values.
I have a rule which matches a file. Then an embedded shell script is executed. This shell scripts "decodes" this file and if you would run this shell script directly in the terminal you would see:
progress: 0%
progress: 1%
progress: 2%
...
ready!

Now I want to display these percentage when I use Hazel.
Is it possible to display the return values of a shell script during(!) the execution (I don't want to display only "ready" at the end). The best way for displaying would be Growl. Is there a way using GrowlNotify or AppleScript?

Thanks for any hints!
xaMax
 
Posts: 17
Joined: Thu May 01, 2008 8:23 am

You can have your script call something to display it for you but Hazel can't do it itself since it's running in the background. But yes, you should be able to call GrowlNotify but all that logic should be internal to your script and not involve Hazel.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support