|Don't ask to ask, just ask|
Basic IPC Exampleby wind (Priest)
|on Jul 25, 2007 at 02:02 UTC||Need Help??|
wind has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Monks, I'm attempting to create a simple example for testing interaction with a secondary application. I have no experience with IPC yet, but my hope is to make code that is functional on both linux and ActivePerl. Here are the basic scripts that I'm starting from.
Now the problem with the above code is that the open command in basicipc.pl appears to be blocking, as in it does not succeed until the delayed.pl script is finished.
Now, if I wasn't doing any translation of the output, I could simply take advantage of the advice in perlipc for Background Processes, as that method lets the secondary process share the same STDOUT and STDIN as the parent. But my goal is to start off being able to translate the output, and then move on to bi-directional interaction.
I have access to most of the major perl books. However, there appear to be so many tools that could be used for this purpose, that I'm finding it difficult on deciding where to start. Especially when trying to maintain code that would support both Linux and Windows.