popen2() does not work correctly on windows!

Peter Cai newptcai at gmail.com
Tue Feb 21 10:10:48 EST 2006


I want to catch the output of a program but I can not use redirect because
it's interactive and thus I need to see the output on the screen.

So I use popen2() to execute it and then both print the output on the screen
and in a log file.
But when I want to write something command to it, it seems that the program
can not get it.

I'm working on windows XP

--
那不是缺陷 只是你不在梦中
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060221/8d6f88f9/attachment.html>


More information about the Python-list mailing list