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

printf printf at hongkong.com
Fri Jan 17 15:20:08 CET 2003


Lao Coon wrote:
> *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

i replace cmd="python -u output.py"
and using python -u monitor.py, it's same as before. it does not work again
thanks for your help.





More information about the Python-list mailing list