if (ps x | grep -v "grep" | grep "program_name")

Paul Murphy wrote:
> 
> I am trying to write a script that tests if a certain program is
> running, I thought to use :
> 
> if ( ps x | grep "program_name" }
> 
> but this will ALWAYS return TRUE [from grep]. How to deal with this??
> --
> [EMAIL PROTECTED]
> http://www.geocities.com/PicketFence/1913/
> 
> "I am not going to be happy until my living room looks like NORAD"

--
My public encryption key is available from 
www.az.com/~drysdam/crypt/rysdam.gpg.html
and of course www.keyserver.net

Reply via email to