[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: RE: [cobalt-users] Planned execution of a script on a RAQ - AT not there ?



Subject: RE: [cobalt-users] Planned execution of a script on a RAQ - AT not
        there ?
From: Francisco Javier Fabra Caro <jfabra@xxxxxxxxx>
To: cobalt-users@xxxxxxxxxxxxxxx
Date: Mon, 10 May 2004 11:36:46 +0200


> How about a PHP script run from CRON, checks the time, if it's nearly the
> trigger time then it does a sleep until its exactly the right time then
> sends the emails using some sort of remailer, otherwise it exits.
> Should be accurate to a few milliseconds!
>
> Phil
>

Yeah!

Or just try to make something like this idea, and when it's nearly the
exact time give the proccess a higher priority. With this you should
avoid situation like the case of have a high CPU use and your triggered
program trying to hardly execute something.

Both suggestions look like a great theory but I cannot find a "down to earth" example in any of the forums I know. I do have a Perl script ready for the action, but am not sure how to make sure the server time is accurate, and especially give a job the highest priority ?