Think about Loose Coupling | |
PerlMonks |
Re: How do I run an Infinite loop with a CGI?by graq (Curate) |
on Nov 08, 2002 at 13:53 UTC ( [id://211431]=note: print w/replies, xml ) | Need Help?? |
There are some subtle differences between infinite loops and daemons, but you can (at times) take that obvious route.
It sounds like you want a daemon. If you merely want the daemon to do something on request of a CGI script, then you can write the daemon to take care of itself (from an OS point of view) and just have it running all the time. Serving the answers as and when you need them. If you want to be able to start the daemon from the web, I would still look at why this is, and consider something paranoid (like I do). Which is a cron-activated script that checks that my daemons are running. I even have a daemon that troubleshoots 3 other daemons (won't explain that now). Otherwise, listen to rob_au :) <a href="http://www.graq.co.uk">Graq</a>
In Section
Seekers of Perl Wisdom
|
|