A library for process information

Posted on 2011-10-03
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.

Question by:GurcanK
    LVL 25

    Accepted Solution

    Couldn't you read the /proc
    pseudo file system to find this information?

    Author Comment

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

    Assisted Solution

    some unix C process API stuff:

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    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.
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now