Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 03-08-2006, 02:04 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 16

Rep: Reputation: 0
What /proc file(s) have process information

I would like to access a single file from my 'C' program, which will give me all the processes which are running in the system. I see the individual task subdirectories within /proc, but would like to know if there is a summary file somewhere which gives consolidated information about the running processes somewhere under the /proc subdir struction.

THanks, Pat//
Old 03-09-2006, 01:02 PM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,191
Blog Entries: 4

Rep: Reputation: 464Reputation: 464Reputation: 464Reputation: 464Reputation: 464
Pah, it had already moved
Old 03-09-2006, 03:17 PM   #3
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,893

Rep: Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357Reputation: 1357
All the numeric file-names in that directory correspond to process-IDs. But it's frequently easier to run the ls command programmatically and capture its output.
Old 03-09-2006, 05:18 PM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,481

Rep: Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347Reputation: 1347
Maybe sundialsvcs meant ps ...


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is /proc hw information really that accurate? jimieee Linux - General 5 03-06-2006 07:58 AM
Information about /proc and /sys directories spinner_0 Linux - General 3 12-01-2005 10:39 AM
How to get these information using proc file system. cppkid Programming 1 10-02-2005 07:55 PM
How do I get the cmdline of a process in proc DonCorleonne Programming 1 05-05-2005 09:48 AM
How reliable is /proc/stat information vs LTT ? rbarara Linux - Software 0 11-25-2004 09:07 PM

All times are GMT -5. The time now is 02:22 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