Q: how to "spawn" an external cmd and catch its stdin,stdout,stderr
Michael Hudson
mwh21 at cam.ac.uk
Thu Oct 21 11:49:08 EDT 1999
Andreas Rozek <Andreas.Rozek at RUS.Uni-Stuttgart.De> writes:
> Hello!
>
> This might be a silly question - but I could not find an answer in the
> Python FaQ - for that reason it might be worth asking:
>
> is there any possibility to launch an external program (without repla-
> cing the current process - i.e., no os.exec* call alone) and catch the
> stdin, stderr and stdout IO streams (the latter also renders spawn and
> fork together with exec* unusable)?
There's popen2.popen3. That won't work on windows...
> A platform-independent solution would be preferrable - however, it's
> more important for me to get it for Windows 98!
but win32pipe might...
HTH
Michael
More information about the Python-list
mailing list