?
Solved

A library for process information

Posted on 2011-10-03
3
Medium Priority
?
352 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:GurcanK
  • 2
3 Comments
 
LVL 25

Accepted Solution

by:
SStory earned 1000 total points
ID: 36903233
Couldn't you read the /proc
pseudo file system to find this information?

http://linux.die.net/man/5/proc
0
 

Author Comment

by:GurcanK
ID: 36903270
/proc is available for Linux, as I know. I am looking for Unix compatible (especially HP-UX) solution.
0
 
LVL 25

Assisted Solution

by:SStory
SStory earned 1000 total points
ID: 36903759
some unix C process API stuff:
http://dce.felk.cvut.cz/pos/os_api/unix-7.html
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question