Hi all,

I am trying to run a command line program from my GUI application, and capture the output.

Currently, it all works fine, but it only captures the output after the process exists.

Is there a way, to check the standard output while the process is running? I've spawned a separate thread for this, but currently it still waits for the process to exit.

So, instead of getting a whole heap of text dumped at the end, I want to grab the text as it becomes available.

Any help or links are appreciated.

Cheers,

chem