Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.


  Search this Thread
Old 06-03-2009, 04:51 AM   #1
LXer NewsBot
Registered: Dec 2005
Posts: 107,545

Rep: Reputation: 117Reputation: 117
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
monitor processes to be notified when a new process is started? cfh Programming 2 10-03-2005 08:07 PM
Lots of Processes in system monitor gauntalus Linux - General 2 03-03-2005 01:03 PM
Want to monitor processes of several hosts through web page, how? huangyanfeng Linux - General 1 05-26-2004 03:36 PM
Monitor & respawn a BG Processes? amaze Linux - General 2 08-12-2003 10:02 PM
Monitor and Restart - Bkg Processes? KendersPlace Linux - General 1 02-15-2003 03:27 AM > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 03:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration