Re: Is a process running ?

Kees Cook
2003-07-28T16:32:29Z

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