On 2004-01-22, smarty <sm****@hot.ee> wrote:
crontab work every minute
How to execute a tasks if the time is 22:30:45 or 22:31:01
id | time | script
-------------------
4 | 22:31:01 | script0.php
3 | 22:31:00 | script1.php
2 | 22:30:45 | script3.php
1 | 22:30:00 | script2.php
The best way is just to use crontab (for the correct syntax use the
manual, but i think it would like this)
01 * * * * * script0.php
00 * * * * * script1.php
45 * * * * * script3.php
00 * * * * * script2.php
Or you can make a script crontab.php and let crontab call that every
minute (having a look at the php manual, section about date and time
functions will provide you all the info that you need)
--
http://home.mysth.be/~timvw