John T. Williams wrote:
ps -A | grep -e "[ /]python2.1\>" 1> /dev/null 2> /dev/null

A quick short-cut for the last part:


ps -A | grep -e "[ /]python2.1\>" >/dev/null 2>&1

"1" (stdout) is used by default, and then 2>&1 takes "2" (stderr) and sends (>) it to the same location (&) as "1".

--
Kees

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to