Taking Control of stdin/stdout of a slave process

Jonathan I. Kamens jik at athena.mit.edu
Thu Mar 14 03:43:31 AEST 1991


In article <1991Mar13.163756.26785 at evax.arl.utexas.edu>, rduff at evax.arl.utexas.edu (Robert Duff) writes:
|> I am interested in starting a UNIX process from a program and having the
|> slave process' stdin and stdout piped through FILE*'s in the master process.
|> 
|> I have worked with popen(), but that only allows one-way piping.
|> How can I get both directions piped to my controller process?

  This is not a comp.unix.wizards question.

  Not only is it not a wizards question, but it's answered in the monthly
Frequently Asked Questions posting in comp.unix.questions (which is where this
question should have been posted in the first place).  Question number 26.

  If the comp.unix.questions FAQ has expired at your site, you can either wait
until it is posted again, or send me E-mail and I'll send it to you.

  And rather than just reading the one question in the FAQ that answers this
particular question it would probably be a good idea for you to scan the whole
thing briefly before posting any additional questions to the net.

-- 
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710



More information about the Comp.unix.wizards mailing list