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


Groups > comp.lang.python > #48862

Re: New line conversion with Popen attached to a pty

Date 2013-06-21 08:43 -0400
From Dave Angel <davea@davea.name>
Subject Re: New line conversion with Popen attached to a pty
References <842132C8A89DB04082D609DD876F0F3B2C57F877@LNDWSMBX01.ad.mpc.local>
Newsgroups comp.lang.python
Message-ID <mailman.3663.1371818634.3114.python-list@python.org> (permalink)

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


Thread

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

csiph-web