Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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 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?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2020-09-22 02:48 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (127 votes). Check out past polls.