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.<br>
<br>
So I use popen2() to execute it and then both print the output on the screen and in a log file.<br>
But when I want to write something command to it, it seems that the program can not get it.<br>
<br>
I'm working on windows XP<br clear="all"><br>-- <br>那不是缺陷 只是你不在梦中