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


Groups > comp.lang.python > #48862 > unrolled thread

Re: New line conversion with Popen attached to a pty

Started byDave Angel <davea@davea.name>
First post2013-06-21 08:43 -0400
Last post2013-06-21 08:43 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: New line conversion with Popen attached to a pty Dave Angel <davea@davea.name> - 2013-06-21 08:43 -0400

#48862 — Re: New line conversion with Popen attached to a pty

FromDave Angel <davea@davea.name>
Date2013-06-21 08:43 -0400
SubjectRe: New line conversion with Popen attached to a pty
Message-ID<mailman.3663.1371818634.3114.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web