New line conversion with Popen attached to a pty

Dave Angel davea at davea.name
Fri Jun 21 08:43:40 EDT 2013


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



More information about the Python-list mailing list