> Requirement:
> I want to create a daemon that would execute some cgi-scripts, once a day.
It seems to me that you are making the problem more complex than it needs to
be.
If you want to execute a CGI script, one time, then you could simply cron
the following call (using Perl's LWP)
GET http://myhost.com/cgi-bin/daily.cgi
So, a complete crontab entry might look like:
0 0 * * * GET http://myhost.com/cgi-bin/daily.cgi
And this says, run at 12:00AM everyday.
Is there another reason why you would need to added complexity of your own
daemon, instead of using a robust, stable, featureful, and already installed
one like cron(8)?
L8r,
Rob