Checking processes without PIDs

Brian bri at sonicboom.org
Mon Nov 27 21:35:32 PST 2006


jhall at vandaliamo.net 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 process actually is running.
>
> Is there a better way to determine if a process is running than using ps
> and grep?
>
> Thanks,
>
>
>
> Jay
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>   
Does ps auxwww work ?

Brian


More information about the freebsd-questions mailing list