pty.spawn directs stderr to stdout

Wilbert Berendsen wbsoft at xs4all.nl
Sat Apr 12 15:41:59 EDT 2008


Op vrijdag 11 april 2008, schreef Donn Cave:
> More likely, you want the spawned process' error output to go wherever
> the parent's error output was going.  This is a little trickier.

I ended up writing a small script that basically reimplements fork() from the 
pty module, where then STDERR is not dup'ed to the pty.

I'm currently trying to combine subprocess.Popen with pty.openpty ...

tx,
Wilbert Berendsen

-- 
http://www.wilbertberendsen.nl/
"You must be the change you wish to see in the world."
        -- Mahatma Gandhi



More information about the Python-list mailing list