Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Writing Daemons

by jakeeboy (Sexton)
on Dec 11, 2001 at 23:52 UTC ( [id://131027] : perlquestion . print w/replies, xml ) Need Help??

jakeeboy has asked for the wisdom of the Perl Monks concerning the following question:

I've been searching for some articles about writing Daemons and haven't been too sucessful. I was wondering if people have some URLS to articles about writing them. Doesn't necessarily have to be about Perl Daemons just the theory and same sample code. Please let me know if anyone has any articles out there. Thanks

Replies are listed 'Best First'.
Re: Writing Daemons
by perrin (Chancellor) on Dec 12, 2001 at 01:30 UTC
    The Perl Cookbook has good info on this, and so does the Advanced Perl book. However, you will usually be better off starting with something on CPAN like Net::Daemon or Net::Server or Net::ServerGeneric.
Re: Writing Daemons
by belg4mit (Prior) on Dec 12, 2001 at 00:18 UTC
    perlipc is a good place to start. And if you know C the source of Vixie Cron can be rather illuminating as well, as would Apache.

    Did you check SysAdmin Magzine or Dr. Dobbs'?

    perl -p -e "s/(?:\w);([st])/'\$1/mg"

Re: Writing Daemons
by Zaxo (Archbishop) on Dec 12, 2001 at 00:34 UTC
Re: Writing Daemons
by clintp (Curate) on Dec 12, 2001 at 01:11 UTC
    And...just in case you missed it: perldoc -q daemon has the basic recipe for writing a daemon.
Re: Writing Daemons
by jaldhar (Vicar) on Dec 12, 2001 at 00:23 UTC