in reply to Re^5: how can I redirect the output of a program and get the exit code too?
in thread how can I redirect the output of a program and get the exit code too?

you dont understand me. everything works, I have the output
 of the program (the program is in perl, my is in perl/tk, 
it is a GUI). I can write to the textwindow, but my program 
does nothing (like frozen) till the other program ends. and 
this is a problem, while the other program runs,my should 
too ! I tried to run the program in the background (&), but 
nothing.
  • Comment on Re^6: how can I redirect the output of a program and get the exit code too?

Replies are listed 'Best First'.
Re^7: how can I redirect the output of a program and get the exit code too?
by ambrus (Abbot) on Jun 23, 2004 at 11:57 UTC

    As far as I can tell, that might be an issue with the windowing system you use, it might not refresh the text control until it returns to the main control loop. I don't know much about gui programming, so I can't tell.

    Also, it can be a problem wit buffering or that you are reading the output line-by-line with the diamond operator.

    You shoud probably post it as a new SOPW, as this is a different question than the original one.