popen problem
Mathias Waack
M.Waack at gmx.de
Wed Mar 17 18:34:31 EST 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?
Mathias
More information about the Python-list
mailing list