A library for process information

Dear experts

I recently developed a C++ program to run in Unix. The program uses ps command in it. I am required not to use any command call in the program. How can I get detailed running processes' information in the program? Any comment, code example, documentation welcomes.

BR
GurcanKAsked:
Who is Participating?
 
SStoryCommented:
Couldn't you read the /proc
pseudo file system to find this information?

http://linux.die.net/man/5/proc
0
 
GurcanKAuthor Commented:
/proc is available for Linux, as I know. I am looking for Unix compatible (especially HP-UX) solution.
0
 
SStoryCommented:
some unix C process API stuff:
http://dce.felk.cvut.cz/pos/os_api/unix-7.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.