Re: Why does bufsize=1 not work in subprocess.Popen ?
- From: Marc 'BlackJack' Rintsch <bj_666@xxxxxxx>
- Date: Sun, 30 Apr 2006 00:13:28 +0200
In <V6R4g.89900$P01.79112@pd7tw3no>, I. Myself wrote:
I read in the docs that "bufsize=1" causes line buffering. (for
subprocess.Popen)
The following tiny program launches an executable file and then receives
its output. That works, but I want to
receive each line as it is ouput, not all of the lines at termination,
which is what is happening.
From the Python side you can only control Python's input buffer but notthe output buffer of the external program you are starting. I guess that
programs buffers its output.
Ciao,
Marc 'BlackJack' Rintsch
.
- Follow-Ups:
- Re: Why does bufsize=1 not work in subprocess.Popen ?
- From: I. Myself
- Re: Why does bufsize=1 not work in subprocess.Popen ?
- References:
- Why does bufsize=1 not work in subprocess.Popen ?
- From: I. Myself
- Why does bufsize=1 not work in subprocess.Popen ?
- Prev by Date: Re: Need help removing list elements.
- Next by Date: Re: Using Databases in Python
- Previous by thread: Why does bufsize=1 not work in subprocess.Popen ?
- Next by thread: Re: Why does bufsize=1 not work in subprocess.Popen ?
- Index(es):