Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Process as daemon, communicate back

by HeatSeekerCannibal (Beadle)
on Dec 21, 2007 at 16:16 UTC ( #658472=note: print w/replies, xml ) Need Help??

in reply to Process as daemon, communicate back

I havent used that module, but if you're in *nix, you could use fork without much problem.

As for the InterProcess Communication (IPC) perlipc part, there are a number of options.

I'm partial towards Shared Memory, but it would involve semaphores. From my point of view its the most powerful solution, but consider if your problem merits the extra work (synchronization).

If you need sample code for forking child processes or shared memory, let me know. I must have some stored somewhere.

Heatseeker Cannibal
  • Comment on Re: Process as daemon, communicate back

Replies are listed 'Best First'.
Re^2: Process as daemon, communicate back
by owl1 (Initiate) on Dec 24, 2007 at 04:03 UTC

    Thanks Cannibal

    Sample code involving independent process accessing the same data with the use of "IPC::Shareable" would be helpful

    Also, the processes are all on the same machine

  • Thanks

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2021-11-29 06:21 GMT
Find Nodes?
    Voting Booth?

    No recent polls found