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


Groups > comp.lang.python > #47644

Re: Popen and reading stdout in windows

From Pete Forman <petef4+usenet@gmail.com>
Newsgroups comp.lang.python
Subject Re: Popen and reading stdout in windows
Date 2013-06-11 08:18 +0100
Organization A noiseless patient Spider
Message-ID <867gi12jzw.fsf@gmail.com> (permalink)
References <fc7fe12873ac476280f4d02714470fb5@exch.activenetwerx.com> <51B62D10.3030907@davea.name> <mailman.3005.1370915497.3114.python-list@python.org>

Show all headers | 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