Path: utzoo!news-server.csri.toronto.edu!rutgers!bellcore!uunet!convex!news From: tchrist@convex.COM (Tom Christiansen) Newsgroups: comp.unix.programmer Subject: Re: How to run a process with arguments, and trap its output, from C Message-ID: <1991Mar14.173026.10993@convex.com> Date: 14 Mar 91 17:30:26 GMT References: <76889@bu.edu.bu.edu> Sender: news@convex.com (news access account) Reply-To: tchrist@convex.COM (Tom Christiansen) Distribution: usa Organization: CONVEX Software Development, Richardson, TX Lines: 15 Nntp-Posting-Host: pixel.convex.com From the keyboard of jdubb@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@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.