Checking processes without PIDs

2006-11-27 Thread jhall
I have written a script to determine if processes are running. I am using, as an example, ps -ax | grep -c postgrey Ocassionally, I am receiving a notification a process is not running (and it varies which process I receive notifications for). And, when checking, the process actually is

Re: Checking processes without PIDs

2006-11-27 Thread Dan Nelson
In the last episode (Nov 27), [EMAIL PROTECTED] said: I have written a script to determine if processes are running. I am using, as an example, ps -ax | grep -c postgrey Ocassionally, I am receiving a notification a process is not running (and it varies which process I receive

Re: Checking processes without PIDs

2006-11-27 Thread N.J. Mann
On Mon 27 Nov 20:46, [EMAIL PROTECTED] wrote: I have written a script to determine if processes are running. I am using, as an example, ps -ax | grep -c postgrey Are you aware of pgrep(1) ? Cheers, Nick. -- ___

Re: Checking processes without PIDs

2006-11-27 Thread jhall
In the last episode (Nov 27), [EMAIL PROTECTED] said: I have written a script to determine if processes are running. I am using, as an example, ps -ax | grep -c postgrey Ocassionally, I am receiving a notification a process is not running (and it varies which process I receive

Re: Checking processes without PIDs

2006-11-27 Thread Dan Nelson
In the last episode (Nov 27), [EMAIL PROTECTED] said: In the last episode (Nov 27), [EMAIL PROTECTED] said: I have written a script to determine if processes are running. I am using, as an example, ps -ax | grep -c postgrey Ocassionally, I am receiving a notification a process is

Re: Checking processes without PIDs

2006-11-27 Thread Brian
[EMAIL PROTECTED] wrote: I have written a script to determine if processes are running. I am using, as an example, ps -ax | grep -c postgrey Ocassionally, I am receiving a notification a process is not running (and it varies which process I receive notifications for). And, when checking, the