Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!mcsun!ukc!edcastle!eonu24 From: eonu24@castle.ed.ac.uk (I Reid) Newsgroups: comp.unix.questions Subject: Re: Master/Slave Processes? Message-ID: <8385@castle.ed.ac.uk> Date: 8 Feb 91 21:54:19 GMT References: <1991Feb08.085034.13605@ariel.unm.edu> <10761@muffin.cme.nist.gov> Organization: Edinburgh University Computer Services Lines: 20 libes@cme.nist.gov (Don Libes) writes: >In article <1991Feb08.085034.13605@ariel.unm.edu> mdiehl@hydra.unm.edu (J. Michael Diehl) writes: >>I am trying to spawn a process and be able to write to it's stdin and >>read from it's stdout. Pipe, Exec, System don't seem to do the trick. >>Any ideas? >Expect includes a C/C++ library that has such a function. See the FAQ >for more info. Another way to do it would be to use pseudo terminals (assuming that you are using a Berkeley based system). As far as I know, this technique lets you talk to a program (running in/as a child process) by pretending to be its standard input and output and, as far as it is concerned, you are! You'll need to get someone to fill you in on all the details if this option is available to you 'cos I've only just started playing around with these beasts and my information on them is limited. Hope this helps, Iain