Using ps to Monitor Processes

view story

http://www.linuxjournal.com – In a previous tech tip, we saw how to use kill to monitor processes. Another option is to use ps. With both methods, you can check $? for success/failure. However, note that kill -0 may return failure even if the process actually exists. (HowTos)