Help need with subprocess communicate

rdabane at rdabane at
Wed Jun 4 08:48:38 CEST 2008

On Jun 3, 11:23 pm, Dennis Lee Bieber <wlfr... at> wrote:
> On Tue, 3 Jun 2008 18:04:40 -0700 (PDT), rdab... at declaimed the
> following in comp.lang.python:
> > Hi Daniel,
> > Thanks for your reply..
> > I've done exactly as you suggested...but I'm still having problem with
> > the just gets stuck in
> > the read ( I think because its a blocking read...)
>         And it is likely blocking because the subprocess is doing buffered
> output -- ie, nothing is available to be read because the output has not
> been flushed.
>         This is a problem with most programs when run as a subprocess -- it
> is common for stdout, when routed to a pipe or file, to behave as a
> buffered stream that only flushes when some x-bytes have been written;
> unlike stdout to a console which gets flushed on each new-line.
> --
>         Wulfraed        Dennis Lee Bieber               KD6MOG
>         wlfr... at              wulfr... at
>                 HTTP://
>         (Bestiaria Support Staff:               web-a... at
>                 HTTP://

Is there way to configure the stdout buffer size so that it flushes
Is there a way to make above mentioned piece code working?

More information about the Python-list mailing list