Queued stdout, flush() doesn't seems to help...
davelaj at videotron.ca
Tue Mar 8 06:03:34 CET 2005
I have been using this piece of code to start an exec and "process" its stdout/stderror
executable = r'execfile -arg1 -arg2'
r, w, e = popen2.popen3(executable)
# just print the 1000 first lines
whenever running this code, the process starts up fine, but no print occurs as the exec is running.
Somehow, the print results shows up only when the process is stopped or when resuming ( thru the windows task list).
is there a way to get the print to show its results as as it is trapped by open3() function ( namely realtime printing ).
Does someone would have a solution for this problem?
Tx in advance for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list