LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   monitoring active processes and identifying the required processes. (https://www.linuxquestions.org/questions/programming-9/monitoring-active-processes-and-identifying-the-required-processes-216990/)

gajaykrishnan 08-13-2004 12:05 AM

monitoring active processes and identifying the required processes.
 
can i write a program that finds out which all user processes are running on the users computer at any given time & identify whether a particular program is running or not.

infamous41md 08-13-2004 12:10 AM

use the /proc file system, and check out 'man proc'.

cppkid 08-13-2004 01:58 AM

Yes the best way is to use /proc file system
also you can get the output from PS or PS -A command, or top command. check all.

/proc filesystem (best)
PS -A
top


All times are GMT -5. The time now is 06:51 PM.