Help need with subprocess communicate

Chris cwitts at gmail.com
Wed Jun 4 04:38:38 EDT 2008


On Jun 4, 9:56 am, Dennis Lee Bieber <wlfr... at ix.netcom.com> wrote:
> On Tue, 3 Jun 2008 23:48:38 -0700 (PDT), rdab... at gmail.com declaimed the
> following in comp.lang.python:
>
> > Is there way to configure the stdout buffer size so that it flushes
> > earlier..
> > Is there a way to make above mentioned piece code working?
>
>         I believe there is a command line argument that will set Python into
> an unbuffered mode... BUT, unless the spawned process/program has some
> similar option, you have no control over its output.
> --
>         Wulfraed        Dennis Lee Bieber               KD6MOG
>         wlfr... at ix.netcom.com              wulfr... at bestiaria.com
>                 HTTP://wlfraed.home.netcom.com/
>         (Bestiaria Support Staff:               web-a... at bestiaria.com)
>                 HTTP://www.bestiaria.com/

starting your application with "python -u" sets it to unbuffered
binary stdout and stderr, hopefully that helps.



More information about the Python-list mailing list