Path: utzoo!news-server.csri.toronto.edu!rutgers!uwm.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uunet!bu.edu!bucsf.bu.edu!jdubb From: jdubb@bucsf.bu.edu (jay dubb) Newsgroups: comp.unix.programmer Subject: How to run a process with arguments, and trap its output, from C Message-ID: <76889@bu.edu.bu.edu> Date: 14 Mar 91 12:51:58 GMT Sender: news@bu.edu.bu.edu Distribution: usa Organization: Computer Science Department, Boston University, Boston, MA, USA Lines: 10 Originator: jdubb@bucsf.bu.edu I am posting this for a friend of mine who doesn't have access to USENET, so please respond directly to mlevin@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@jade.tufts.edu)