help!! getting output from another process line by line, using popen

Lao Coon laocoon at eudoramail.com
Fri Jan 17 15:04:09 CET 2003


*snip*
>> ================monitor.py===============
>> #! /usr/bin/python
>> 
>> import os
>> import sys, string
>> cmd="python output.py"
*snip*
> Lao

After just testing it you also /have to/ use python -u
here to get unbuffered output.

Sorry for the inconvenience

Lao




More information about the Python-list mailing list