Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #47644

Re: Popen and reading stdout in windows

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail
From Pete Forman <petef4+usenet@gmail.com>
Newsgroups comp.lang.python
Subject Re: Popen and reading stdout in windows
Date Tue, 11 Jun 2013 08:18:27 +0100
Organization A noiseless patient Spider
Lines 20
Message-ID <867gi12jzw.fsf@gmail.com> (permalink)
References <fc7fe12873ac476280f4d02714470fb5@exch.activenetwerx.com> <51B62D10.3030907@davea.name> <mailman.3005.1370915497.3114.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx05.eternal-september.org; posting-host="cdf6132ee4c43c2d1457a368e89c85c9"; logging-data="8891"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KYJp/+bEL1w3Gu7csw63a"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.2 (windows-nt)
Cancel-Lock sha1:WGhf2hUBEWCuUo+xwx8mWJTa1bE= sha1:44hdARm+q+qlELgae5FbnstCUvg=
Xref csiph.com comp.lang.python:47644

Show key headers only | View raw


"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/

-- 
Pete Forman

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

RE: Popen and reading stdout in windows "Joseph L. Casale" <jcasale@activenetwerx.com> - 2013-06-11 01:50 +0000
  Re: Popen and reading stdout in windows Pete Forman <petef4+usenet@gmail.com> - 2013-06-11 08:18 +0100
    Re: Popen and reading stdout in windows Chris Rebert <clp2@rebertia.com> - 2013-06-11 00:26 -0700
  RE: Popen and reading stdout in windows Nobody <nobody@nowhere.com> - 2013-06-11 10:54 +0100

csiph-web