Mark Dootson <mark.dootson@xxxxxxxx> 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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
|