![]() |
|
Think about Loose Coupling | |
PerlMonks |
Concurrency with IPC::Run3 ?by LanX (Sage) |
on Jul 03, 2022 at 22:10 UTC ( #11145257=perlquestion: print w/replies, xml ) | Need Help?? |
LanX has asked for the wisdom of the Perl Monks concerning the following question:
Pardon my ignorance, but I have trouble understand the docs of IPC::run3 How do I implement the following, including catching stdout and stderr with run3? the docs claim compared to system(), qx'', open "...|", open "|..." ... BUT ... Note that this form of redirecting the child's I/O doesn't imply any form of concurrency between parent and child - run3()'s method of operation is the same no matter which form of redirection you specify. I'm confused, is it even possible to have a bidirectional communication between two simultaneously running processes with run3? If not what's the appropriate solution?
client.pl
server.pl
output
updatefound this Bidirectional Communication with Another Process doesn't seem to be overly portable and I doubt run3 is the solution...
Cheers Rolf
Back to
Seekers of Perl Wisdom
|
|