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

jay dubb jdubb at bucsf.bu.edu
Thu Mar 14 22:51:58 AEST 1991


   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.

					Mike Levin (mlevin at jade.tufts.edu)



More information about the Comp.unix.programmer mailing list