Re: New line conversion with Popen attached to a pty

Discussion in 'Python' started by Dave Angel, Jun 21, 2013.

  1. Dave Angel

    Dave Angel Guest

    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
    Dave Angel, Jun 21, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Evan Driscoll
    Replies:
    0
    Views:
    207
    Evan Driscoll
    Oct 24, 2012
  2. Evan Driscoll
    Replies:
    0
    Views:
    161
    Evan Driscoll
    Oct 24, 2012
  3. Evan Driscoll
    Replies:
    0
    Views:
    183
    Evan Driscoll
    Oct 24, 2012
  4. Replies:
    2
    Views:
    172
  5. Jonathan Harden
    Replies:
    1
    Views:
    74
Loading...

Share This Page