popen2
Piet van Oostrum
piet at cs.uu.nl
Sun Oct 30 13:41:44 EST 2005
>>>>> Piet van Oostrum <piet at cs.uu.nl> (PvO) wrote:
>PvO> He didn't state that he has no control over that program. I.e. if it is a
>PvO> program that he has source code of, he could change its behaviour to use a
>PvO> named pipe.
He could do the initial run of the program with stdin and stdout redirected
to named pipes.At least on Unix that works, I don't know about Windows (but
why not). Later you can write input to the stdin pipe and read the output
back from the other one.
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org
More information about the Python-list
mailing list