Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.052 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'iterate': 0.09; 'wrapper': 0.09; 'cc:addr:python-list': 0.11; '>>': 0.16; 'buffer.': 0.16; 'exe': 0.16; 'stdout': 0.16; 'subject:windows': 0.16; 'wrote:': 0.18; 'command': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'days,': 0.24; 'guys': 0.24; 'cheers,': 0.24; 'cc:2**0': 0.24; '>': 0.26; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'chris': 0.29; 'leave': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'pipe': 0.31; 'writes:': 0.31; 'run': 0.32; 'guess': 0.33; 'could': 0.34; 'problem.': 0.35; 'received:google.com': 0.35; "i'll": 0.36; 'url:org': 0.36; 'rather': 0.38; 'sure': 0.39; 'eventually': 0.60; 'providing': 0.61; 'real': 0.63; 'detail.': 0.68; 'sender:addr:chris': 0.84; 'useless...': 0.84; 'pipeline': 0.91; 'to:none': 0.92; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type; bh=QqpZa8ATxwAUcnnP7YbNbVeTjKTFr2U6IIcEOJBKN5M=; b=CWHa/D86r16be2Vm/4Q1nkvAR41H6bLfNuYLdLQtVAVzdb2WRhwwTXEkpC5XcMYZ8H PBqe5JyhNi8A+/ZMcrzFXQjGOohEM5uP2vNqiYZFfpvBUSU5wFKmb1e5CneavdsF5Apt paqJL/l1oMDEVGi1f5i3tecKRFun/xS0zP8OU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type :x-gm-message-state; bh=QqpZa8ATxwAUcnnP7YbNbVeTjKTFr2U6IIcEOJBKN5M=; b=aM0b0i5Ewz6C62jq4lDyaOS2VmWFNpE5rePE0a3G2sk0NPBrKCmBe56tsaD6cuJ1IB cc0RNKyzp3vvJlblg8fsBZ4JdEQxtRlOta8mTyvXBDZXBeqa/rKBLS6ENFa2rg77/77a 1zYaYNLG6iWAIMk7cR6ZQ+jF5wB3K08Vj2heU1lgLewZMeuIMNaZ5PLJ1rVjzYUeG/nu ZSnBeE2lotOf862jvVjJ5OufSu8S41614GrPAQADS6s2nSFzw+0GAX0998IAoQQKJHhr CoUuSFg5gg2Cqo7JQszz6uD0L0IWkYsf4GfUvYyrTcdPyKC8IwW7Z5FucF7YEQUiB+83 rohQ== MIME-Version: 1.0 X-Received: by 10.50.120.68 with SMTP id la4mr292602igb.49.1370935598850; Tue, 11 Jun 2013 00:26:38 -0700 (PDT) Sender: chris@rebertia.com In-Reply-To: <867gi12jzw.fsf@gmail.com> References: <51B62D10.3030907@davea.name> <867gi12jzw.fsf@gmail.com> Date: Tue, 11 Jun 2013 00:26:38 -0700 X-Google-Sender-Auth: kh7P1o6i0CU9U1SlnEd6coqGleQ Subject: Re: Popen and reading stdout in windows From: Chris Rebert Cc: Python Content-Type: multipart/alternative; boundary=047d7ba97978613f3e04dedbd1fe X-Gm-Message-State: ALoCoQkQze/e477qcoZi4TjfQrf2BYK8TkukjLNg8dgk+CK5i4ac3be9yclktH+KL2/n3Wtkb2LA X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 55 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370935608 news.xs4all.nl 15936 [2001:888:2000:d::a6]:36300 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47648 --047d7ba97978613f3e04dedbd1fe Content-Type: text/plain; charset=UTF-8 On Jun 11, 2013 12:21 AM, "Pete Forman" wrote: > > "Joseph L. Casale" writes: > > >> You leave out an awful amount of detail. I have no idea what ST is, > >> so I'll have to guess your real problem. > > > > Ugh, sorry guys its been one of those days, the post was rather > > useless... > > > > I am using Popen to run the exe with communicate() and I have sent > > stdout to PIPE without luck. Just not sure what is the proper way to > > iterate over the stdout as it eventually makes its way from the > > buffer. > > You could try Sarge which is a wrapper for subprocess providing command > pipeline functionality. > > http://sarge.readthedocs.org/ Or Plumbum: http://plumbum.readthedocs.org Cheers, Chris --047d7ba97978613f3e04dedbd1fe Content-Type: text/html; charset=UTF-8

On Jun 11, 2013 12:21 AM, "Pete Forman" <petef4+usenet@gmail.com> wrote:
>
> "Joseph L. Casale" <jcasale@activenetwerx.com> writes:
>
> >> You leave out an awful amount of detail. I have no idea what ST is,
> >> so I'll have to guess your real problem.
> >
> > Ugh, sorry guys its been one of those days, the post was rather
> > useless...
> >
> > I am using Popen to run the exe with communicate() and I have sent
> > stdout to PIPE without luck. Just not sure what is the proper way to
> > iterate over the stdout as it eventually makes its way from the
> > buffer.
>
> You could try Sarge which is a wrapper for subprocess providing command
> pipeline functionality.
>
> http://sarge.readthedocs.org/

Or Plumbum: http://plumbum.readthedocs.org

Cheers,
Chris

--047d7ba97978613f3e04dedbd1fe--