Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Forking Question

by mikfire (Deacon)
on Jun 14, 2001 at 09:22 UTC ( #88300=note: print w/ replies, xml ) Need Help??


in reply to Forking Question

You may also want to check out IPC::Shareable or IPC::ShareLite if your system supports shared memory. I cannot claim to be conversant in either module, but it should be a fair fit for what you are trying to do. It would also eliminate the need to use pipes.

If you decide not to do this, I am uncertain if you really need two way pipes. It seems the communication needs to flow only from child to parent. You can do this with

open KID, "-|";
which will fork a child process off and connect the child's STDOUT to the named file handles.

mikfire


Comment on Re: Forking Question
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://88300]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2015-07-03 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (54 votes), past polls