[Q]Two way pipes for UNIX child processes?

Rod Morehead (rmore@netcom.com)
Thu, 31 Mar 1994 23:36:27 GMT

I really am enjoying the python language. It is one of the cleanest
languaes I have ever used.

What I am trying to do is run a child process, feed it some input,
see its resonse, feed it more input etc. This could be used for providing
a GUI layer for a shell or, in my case, automating testing for
a CLI.

I wasn't able to spot anything that does this in the distribution. I know
I can get a similar effect by staging files and redirecting input and
output but I was hoping for a cleaner way.

Any comments or suggestions would be appreciated.

Thanks,
Rod Morehead
rmore@netcom.com