Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #48862
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <davea@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.020 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'duplicate': 0.07; 'executes': 0.09; 'title.': 0.09; 'thread': 0.14; 'attaching': 0.16; 'happily': 0.16; 'received:74.208.4.195': 0.16; 'stdout': 0.16; 'thread,': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'environment': 0.24; 'header:In-Reply-To:1': 0.27; 'external': 0.29; 'am,': 0.29; 'specified': 0.30; 'getting': 0.31; 'bunch': 0.31; 'controlled': 0.31; 'delayed': 0.31; 'class': 0.32; 'noticed': 0.34; 'problem': 0.35; 'subject:with': 0.35; 'hi,': 0.36; 'subject:New': 0.37; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'new': 0.61; 'kept': 0.65; 'received:74.208': 0.68; 'resolved.': 0.91 |
| Date | Fri, 21 Jun 2013 08:43:40 -0400 |
| From | Dave Angel <davea@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: New line conversion with Popen attached to a pty |
| References | <842132C8A89DB04082D609DD876F0F3B2C57F877@LNDWSMBX01.ad.mpc.local> |
| In-Reply-To | <842132C8A89DB04082D609DD876F0F3B2C57F877@LNDWSMBX01.ad.mpc.local> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:Zw+aePkHnzjRB8caAEqCK4KQjnNmVOcUqHN4I/lJR9t 6K+pAHeYQSz5gpo5M4Ww0BXWJ09ZXarCGxp3W0E4bXO2MEG4qG 0jfwgdeQC7GTYdsNQsTnUN39eiOGyEmzC4JrcgiDxNKET5vfsz 94AWuYAR7scaOYQW/qTQToSCBIvLSgmvzhmhm2sU7Dti11+HS3 T36y40OAbAc7WpyT9ggECbhn6Ge5jFPoe1M89wEl8HoN1tbP2K lzaLd47IVzBq4HkFW4JA4vt32+etboeYroMEvaT59b4OCE31lu gC7DXSISWXv/JWYNSX4ZgZdMqwYkuDTgiuwIKqv6VAgrJl95Bj H/thSErW+tcHiGWw6c6Y= |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| 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.3663.1371818634.3114.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1371818634 news.xs4all.nl 15980 [2001:888:2000:d::a6]:49738 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:48862 |
Show key headers only | View raw
On 06/20/2013 06:20 AM, Jonathan Harden wrote: > Hi, > > We have a class which executes external processes in a controlled environment and does "things" specified by the client program with each line of output. To do this we have been attaching stdout from the subprocess.Popen to a pseudo terminal (pty) made with pty.openempty and opened with os.fdopen. I noticed that we kept getting a bunch of extra new line characters. > Duplicate thread, delayed by the vagaries of email and gateways. In that thread, the problem has been happily resolved. Any responses, please keep them on the other thread with the same title. -- DaveA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: New line conversion with Popen attached to a pty Dave Angel <davea@davea.name> - 2013-06-21 08:43 -0400
csiph-web