Re: reading stdout from a running win32 process

2009-01-06 Thread sturlamolden
On Jan 6, 6:51 pm, "Jules Stevenson" wrote: > I don't seem to be able to read the 'out' at all? If I omit redirecting > stdout etc then the output displays fine in the console. You are redirecting to a file, not a pipe. Read the file from beginning to end after your process had finished. Or red

reading stdout from a running win32 process

2009-01-06 Thread Jules Stevenson
Hi list, I'm launching a process from windows using the demo 'winprocess' from the win32 extensions. I want to be able to record the output of the process as it runs and display it elsewhere. If I use the following [very bad] code: import winprocess import tempfile import time some_condition=Tru