> (readlink /proc/`cat /var/run/pid`/exe | grep -q > progname) > > will return 0 if it's the right program and 1 if > it's not. In fact, > that's exactly my problem. I want the "0" and "1" to > be reversed. If I did:
You can add -v to the grep command line, it will reverse its function. Or replace "grep -q progname" with "(grep -q progname && exit 1; exit 0)". --Alex ______________________________________________________ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]