Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

IPC recommendations needed

by Anonymous Monk
on Oct 06, 2000 at 17:00 UTC ( [id://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?

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://35568]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-19 21:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found