popen problem

Mathias Waack M.Waack at gmx.de
Thu Mar 18 00:34:31 CET 2004

Gandalf wrote:

>   Hi All!
> I don't know if this is a Python problem or not. Here is a snippet:
> import os
> TERM='\n\r\n\r'
> cmd = 'cu -l /dev/cuaa0 -s9600'
> pop = os.popen4(cmd,1)

You want to use a bufsize of 1? The Python docs say that bufsize is
the third param to popen4, does 
        pop = os.popen4(cmd,'t',0)
or      pop = os.popen4(cmd, bufsize = 0)
a better job?


More information about the Python-list mailing list