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

Simple perl daemon with limited number of children to fork

by Doctrin (Beadle)
on Jul 15, 2013 at 14:06 UTC ( #1044384=perlquestion: print w/ replies, xml ) Need Help??
Doctrin has asked for the wisdom of the Perl Monks concerning the following question:

Hello dear Monks! Could anyone please write (for me :) a simple daemon with limited number of children? I.e. when all children are busy, it waits for some child dies, and then generates a new one. Thank you very much in advance )) PS If I've provided not enough information - please let me know. PPS Pardon. I did not think this is such a complex question. Thanks anyway.

Comment on Simple perl daemon with limited number of children to fork
Re: Simple perl daemon with limited number of children to fork
by Corion (Pope) on Jul 15, 2013 at 14:08 UTC

    Have you had a look at the documentation (or source code of) Parallel::ForkManager? Or maybe Daemon? Where exactly do you have problems?

Re: Simple perl daemon with limited number of children to fork
by VinsWorldcom (Priest) on Jul 15, 2013 at 14:10 UTC

    I will need to know the hourly rate and duration you think it will take to accomplish the task. We can then negotiate the final price / scope for this request from this non-code-writing service.

Re: Simple perl daemon with limited number of children to fork
by rjt (Deacon) on Jul 15, 2013 at 14:37 UTC
    PPS Pardon. I did not think this is such a complex question. Thanks anyway.

    You misunderstand us. We Perlmonks do not shy away from complexity; in fact we live for it. When someone comes asking for help, however, we would be negligent in our monastic duties if we simply provided answers any time a learner of Perl came in the door looking for source code. How would that help anyone? I certainly wouldn't learn anything, and probably neither would you.

    So, meet us halfway. Start with some basic research. Even the simplest of Google searches for "perl simple daemon" (the only search I tried) pulls up scores of highly relevant and highly informative results, many of them from right here on PerlMonks. Next, try to write some code. You don't have to fight with it for days on end, but it's in your own best interest to make a decent effort. By the time you do all of that, and write up a good question, if you haven't already figured it out yourself, you will know where you are stuck, and we will know how to help you get unstuck.

Re: Simple perl daemon with limited number of children to fork
by Old_Gray_Bear (Bishop) on Jul 15, 2013 at 16:05 UTC
    I have a truly marvelous solution to your problem, unfortunately there are not enough extra pixels in your question to contain it.

    ----
    I Go Back to Sleep, Now.

    OGB

      I have a truly marvelous solution to your problem, unfortunately there are not enough extra pixels in your question to contain it.

      I think you should consider your own post for reaping

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2014-08-21 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (136 votes), past polls