Mar 4, 2001, 10:23 PM
Post #2 of 4
Re: Continuously running cron type system
[In reply to]
A tip I can give you is using cron to re-run your script every minute is putting a load on the server, rather than writing a daemon. If you can load a daemon on your server, if you are allowed, then I'd do that, in the advanced forum I have a small example of a daemon in my question. If you put your code to check the data base instead of where it prints it would work, except you'd want it to sleep for 60 seconds instead of whatever I had.
Much like the mail daemon on a server your daemon would have to be initiated when the server starts up. I got as far as running the daemon locally for testing then dropped it, I know that through certain admin panels in linux systems you can get it to do just that but I don't remember how. I killed my linux box a while ago out of frustration, I'm going to setup another one though.
Good Luck with that, I'd actually try and get some information about loading your script into the system so it starts with the server from your hosting company.