popen and i/o redirection question

Charles G Waldman cgw at alum.mit.edu
Thu Mar 30 21:18:04 CEST 2000


Here's a little something I haven't been able to figure out.

I am using the popen2 module to start an instance of "gdb".
Then I send some gdb commands to set a few breakpoints and 
start a program.

Once the program starts, the standard output and standard error
from that program come back to the top-level Python process
through the same pipes as gdb's stdout and stderr.

What I'd like to be able to do is to have the I/O to the debugging
target on different pipes than the I/O to gdb itself, but I haven't
been able to figure out quite how to do this.

Does anybody have any suggestions?







More information about the Python-list mailing list