Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to How do I run an Infinite loop with a CGI?

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>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-29 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found