From: Mark D. <mar...@zn...> - 2007-03-26 01:34:57
|
Hi, I wanted to execute an external command and have the output returned to me line by line as events. This would mean I could have long running external process running in the background that periodically reports status to the GUI. It also gives me a simple alternative to threads / POE etc. for certain cases. I've put it together at http://www.wxperl.co.uk/processstream.html A source tar.gz and MSWin32 PPM are downloadable. Both contain an example prog - example/psexample.pl. Just enter a command in the TextCtrl and execute it. It seems to handle multiple concurrent running procs fine. I'd appreciate any comments and views on code, process and namespace. (and if I have wasted my time - has this been done elsewhere?) Regards Mark |