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 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> References: <51B62D10.3030907@davea.name> 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 "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/ -- Pete Forman