Capturing stdout without waiting for the process end

Diez B. Roggisch deets at nospam.web.de
Mon Apr 3 13:02:05 EDT 2006


> fin, fout = os.popen4(arg)
> 
> this is executed asyncronously? And how can I intercept a fout.write()
> event?

You don't intercept anything, you read from the child process stdin, which
from your POV is a readable stream.

Diez



More information about the Python-list mailing list