Re: do shell script "ps -auxwww | grep rsync | grep -v grep"
Re: do shell script "ps -auxwww | grep rsync | grep -v grep"
- Subject: Re: do shell script "ps -auxwww | grep rsync | grep -v grep"
- From: Michael Heinz <email@hidden>
- Date: Fri, 7 Oct 2005 06:29:19 -0400
The problem is the final grep.
From the man page:
"Normally, exit status is 0 if selected lines are found and 1
otherwise. But the exit status is 2 if an error occurred, unless the -
q or --quiet or --silent option is used and a selected line is found."
Basically, that's the way grep works.
On Oct 7, 2005, at 6:05 AM, Simon Forster wrote:
Why does:
do shell script "ps -auxwww | grep rsync | grep -v grep"
error with "The command exited with a non-zero status" if rsync's
not running? Seems to exit fine in terminal (which I know is a
different environment). Can I get this to exit gracefully or do I
need to trap for the error?
TIA
Simon Forster
_____________________________________________________
LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247
_____________________________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40comcast.net
This email sent to email@hidden
---
Porkchop D. Clown
Balloons, Buffoonery and Balderdash.
_______________________________________________
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