From: Johan V. <jvr...@sq...> - 2007-03-30 14:21:12
|
Mark Dootson <mar...@zn...> writes: > Tests complete OK on MSWin32 / Linux, both with Wx-0.70 + wxWidgets 2.8.3 > available at http://www.wxperl.co.uk/processstream.html > I'd appreciate any comments and views on code, process and namespace. As far as I can test, it does exactly what it is supposed to do! The only problem I had (and that took me hours of debugging) was why the slave process wouldn't read the data that was written to it using WriteProcess. Well, the slave used <STDIN>, and it was just patiently waiting for the newline before making any input available. I was slighty misled by the documentation: $process->WriteProcess('a message to stdin'); Which I'd suggest to change to: $process->WriteProcess("a message to stdin\n"); as a reminder that newlines are important. When playing Q & A with a slave program I noticed that the response is not snappy. Apparently there's a 1-second poll interval hidden somewhere. It would be nice it this could be reduced to 200ms or something similar. (But it could be hidden deeply in Wx -- didn't investigate). For me, this module is exactly what I've needed for a long time! Thanks, Johan |