Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #17760
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python@mrabarnett.plus.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.009 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'terminated': 0.07; 'from:addr:python': 0.09; 'output': 0.10; 'from:addr:mrabarnett.plus.com': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'read()': 0.16; 'received:84.92': 0.16; 'received:84.92.122': 0.16; 'received:84.92.122.60': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'reply-to:addr:python-list': 0.16; 'wrote:': 0.18; 'suggest': 0.20; 'header:In-Reply-To:1': 0.22; 'lines': 0.30; 'hi,': 0.32; 'header:User-Agent:1': 0.33; 'to:addr :python-list': 0.34; 'received:84': 0.34; 'file.': 0.34; 'reply- to:addr:python.org': 0.34; 'but': 0.37; 'using': 0.38; 'some': 0.38; 'to:addr:python.org': 0.40; 'kindly': 0.65; 'header:Reply- To:1': 0.71; 'reply-to:no real name:2**0': 0.72; 'alternative.': 0.84 |
| X-CM-Score | 0.00 |
| X-CNFS-Analysis | v=2.0 cv=J8QoHXbS c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=9jsOeB20M3cA:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=qbo1ZQOoZhoK2Kch1joA:9 a=wPNLvfGTeEIA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 |
| X-AUTH | mrabarnett:2500 |
| Date | Fri, 23 Dec 2011 00:47:07 +0000 |
| From | MRAB <python@mrabarnett.plus.com> |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: reading multiline output |
| References | <79DF8234-67BF-4297-ACE6-8D091D05B3E9@gmail.com> <EAC763DC-04F6-497F-8455-1CF40A0ACC2E@gmail.com> |
| In-Reply-To | <EAC763DC-04F6-497F-8455-1CF40A0ACC2E@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| Reply-To | python-list@python.org |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4006.1324601223.27778.python-list@python.org> (permalink) |
| Lines | 11 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1324601223 news.xs4all.nl 6882 [2001:888:2000:d::a6]:49239 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:17760 |
Show key headers only | View raw
On 23/12/2011 00:33, Mac Smith wrote: > Hi, > > > I have started HandBrakeCLI using subprocess.popen but the output is > multiline and not terminated with \n so i am not able to read it > using readline() while the HandBrakeCLI is running. kindly suggest > some alternative. i have attached the output in a file. > The lines are terminated with \r, so read with read() and then split on "\r".
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: reading multiline output MRAB <python@mrabarnett.plus.com> - 2011-12-23 00:47 +0000
csiph-web