Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

IPC recommendations needed

by Anonymous Monk
on Oct 06, 2000 at 17:00 UTC ( #35568=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I need to run about 5 or 6 processes reading separate fifo entries in an NFS directory.
It seems that if more than one reader reads a fifo (created via mknod), the data gets mangled.
I tried using msgget, etc., but that fails, apparently due to poor msg.ph files, and I'm not allowed to install a C compiler in this environment, so I can't even install the IPCSysV module.
Any ideas?

Comment on IPC recommendations needed
Re: IPC recommendations needed
by dl748 (Initiate) on Jun 02, 2001 at 03:43 UTC
    I would do this:
    Every time you fork, create a socketpair. This gets passed to the child. You can use this socket to pass data back and forth. All it is is an unnamed pipe. You'd communicate to it as you would a socket. I've done this many times.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2014-09-19 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (137 votes), past polls