How to run a process with arguments, and trap its output, from C

Tom Christiansen tchrist at convex.COM
Fri Mar 15 03:30:26 AEST 1991


>From the keyboard of jdubb at bucsf.bu.edu (jay dubb):
:   I am posting this for a friend of mine who doesn't have access
:to USENET, so please respond directly to mlevin at jade.tufts.edu.
:
:   How would I, from C on a BSD4.3 Unix system, run a shell command
:(with arguments, etc.) and trap its output (perhaps into a FILE *
:pointer so I can access it via the stdio functions)? Thanks in
:advance.

% man 3 popen


--tom

    USENET is not an AI interface to the UNIX manuals.



More information about the Comp.unix.programmer mailing list