LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: Using ps to Monitor Processes (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-using-ps-to-monitor-processes-730352/)

LXer 06-03-2009 03:51 AM

LXer: Using ps to Monitor Processes
 
Published at LXer:

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. This happens when the current user has no permission to the process in question, for example: kill -0 1.

Read More...


All times are GMT -5. The time now is 08:13 PM.