1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

data manipulation between C program & linux shell

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

  1. imported_sangamesh

    imported_sangamesh New Member

    Sep 4, 2010
    Likes Received:
    Trophy Points:
    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