Re: Grabbing the output of a long-winded shell call (in GNU/Linux)

2007-05-01 Thread Efrat Regev
Diez B. Roggisch wrote: > Efrat Regev schrieb: >> [EMAIL PROTECTED] wrote: >>> On May 1, 2:23 pm, Efrat Regev <[EMAIL PROTECTED]> wrote: >>> So my question is if there's a way to "grab" the output as it's being generated. It doesn't matter if the solution is blocking (as opposed to c

Re: Grabbing the output of a long-winded shell call (in GNU/Linux)

2007-05-01 Thread Diez B. Roggisch
Efrat Regev schrieb: > [EMAIL PROTECTED] wrote: >> On May 1, 2:23 pm, Efrat Regev <[EMAIL PROTECTED]> wrote: >> >>> So my question is if there's a way to "grab" the output as it's being >>> generated. It doesn't matter if the solution is blocking (as opposed to >>> callback based), since threads ca

Re: Grabbing the output of a long-winded shell call (in GNU/Linux)

2007-05-01 Thread Efrat Regev
[EMAIL PROTECTED] wrote: > On May 1, 2:23 pm, Efrat Regev <[EMAIL PROTECTED]> wrote: > >> So my question is if there's a way to "grab" the output as it's being >> generated. It doesn't matter if the solution is blocking (as opposed to >> callback based), since threads can handle this. I just don't

Re: Grabbing the output of a long-winded shell call (in GNU/Linux)

2007-05-01 Thread [EMAIL PROTECTED]
On May 1, 2:23 pm, Efrat Regev <[EMAIL PROTECTED]> wrote: > So my question is if there's a way to "grab" the output as it's being > generated. It doesn't matter if the solution is blocking (as opposed to > callback based), since threads can handle this. I just don't know how to > "grab" the output

Grabbing the output of a long-winded shell call (in GNU/Linux)

2007-05-01 Thread Efrat Regev
Hello, Suppose I want to run from within a Python GUI app some long-output shell call. For example, from within Python I might want to call g++ foo.cpp I already know there are many ways to do this, e.g., commands.getstatusoutput('g++ foo.cpp') to name one. The problem is that thi