Now that I know it's not possible to do what I wanted, I can work
around this without a problem. I'll just scan the output of the .exe
to determine whether it appears to have failed or not.
Thanks to everyone for the info.
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to run a program and filter the output on Windows XP.
Since I want to filter the output, I'd like to read it a line at a time
and only print the lines I care about.
p = subprocess.Popen(["doxygen.exe", r"Doxyfile.cfg"],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
while 1:
line
>Didn't help you much..
Thanks, actually even hints that it's not possible helps. So I won't
keep driving myself crazy figuring out how to do it. :-)
--
http://mail.python.org/mailman/listinfo/python-list
On WinXP, I am doing this
nant.exe | python MyFilter.py
This command always returns 0 (success) because MyFilter.py always
succeeds.
MyFilter.py looks like this
while 1:
line = sys.stdin.readline()
if not line:
break
...
sys.stdout.write(line)
sys.stdout.flush()
How