popen and i/o redirection question

Stefan Kersten steve at k-hornz.de
Thu Mar 30 16:24:30 EST 2000


Thu, 30 Mar 2000 13:18:04 -0600, and Charles G Waldman states:
[snip]
>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?

Maybe the -tty options to gdb proves useful (from gdb's man page):

       -tty=device
               Run using device for your program's standard input
              and output.

I don't know if you can use a pipe (os.pipe()) here. Anyone?

<sk>

-- 
K )---+---( H )( O )( R )( N )( Z )
  |   +-( http://www.k-hornz.de )
  +--------( steve at k-hornz.de )
  +( we're the dot in godot )




More information about the Python-list mailing list