Re: pty.spawn directs stderr to stdout

2008-04-12 Thread Wilbert Berendsen
Op zaterdag 12 april 2008, schreef Wilbert Berendsen: > I'm currently trying to combine subprocess.Popen with pty.openpty ... which succeeded :-) http://code.google.com/p/lilykde/source/browse/trunk/runpty.py?r=314 it seems to work :-) thanks, Wilbert Berendsen -- http://www.wilbertberendsen.nl/

Re: pty.spawn directs stderr to stdout

2008-04-12 Thread Wilbert Berendsen
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 n

Re: pty.spawn directs stderr to stdout

2008-04-11 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Wilbert Berendsen <[EMAIL PROTECTED]> wrote: > Hi, > > using pty.spawn() it seems that stderr output of the spawned process is > directed to stdout. Is there a way to keep stderr separate and only direct > stdin and stdout to the pty? There is, of course. Firs

pty.spawn directs stderr to stdout

2008-04-10 Thread Wilbert Berendsen
Hi, using pty.spawn() it seems that stderr output of the spawned process is directed to stdout. Is there a way to keep stderr separate and only direct stdin and stdout to the pty? TIA, w best regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ "You must be the change you wish to see