LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-13-2004, 12:05 AM   #1
gajaykrishnan
Member
 
Registered: Jul 2004
Posts: 65

Rep: Reputation: 15
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.
 
Old 08-13-2004, 12:10 AM   #2
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
use the /proc file system, and check out 'man proc'.
 
Old 08-13-2004, 01:58 AM   #3
cppkid
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
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
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
processes doralsoral Linux - Software 2 11-14-2005 11:34 AM
are all processes running in linux required shyam_d_sundar Linux - Newbie 3 03-08-2004 01:03 PM
Identifying Processes Transition Linux - General 4 02-18-2004 03:08 PM
Monitoring Active processes HeavyWater Linux - Newbie 4 07-07-2003 09:41 PM
Monitoring Processes Bee Linux - General 4 11-19-2001 08:33 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:04 AM.

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