data manipulation between C program & linux shell

Discussion in 'C' started by imported_sangamesh, Sep 4, 2010.

  1. imported_sangamesh

    imported_sangamesh New Member

    Joined:
    Sep 4, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Dear all,

    I've to develop a software, which works on the data taken from Linux shell commands. For example: manipulation of the output of ifconfig command into C/C++ program. How this can be achieved?
    I know that system() function can be used to execute linux commands. But don't know how to return the output to program.

    Or, are there any others way of doing it?

    Note: Only high level languages preferred. No scripting

    Thank you
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice