poweroftorch
New Member
- Messages
- 1
- Reaction score
- 0
- Points
- 0
Hello,
I am looking for a way to execute a Cron task every 12 hours and 1 minute.
I have tried the */12 command, but that won't work because the PHP script takes around 5 sec to execute, and the next one starts at the starting time (12.00.00) and not the end time (12.00.05). I know the difference is tiny, but still it makes my script fail because it won't work if executed before the exact 12h from the end of the previous one, that's why i want to add an extra minute to the next run, but don't know how.
I have tried to use */721 for the minutes but values >60 are taken as a 0.
I am also unsure to use this:
Because i don't really know what would it do, and i am afraid it would execute the script every minute during the 12th hour, and that could end up in spending too much resources unneededly.
So, anyone has any ideas on how could i do this?
Thanks in advance.
I am looking for a way to execute a Cron task every 12 hours and 1 minute.
I have tried the */12 command, but that won't work because the PHP script takes around 5 sec to execute, and the next one starts at the starting time (12.00.00) and not the end time (12.00.05). I know the difference is tiny, but still it makes my script fail because it won't work if executed before the exact 12h from the end of the previous one, that's why i want to add an extra minute to the next run, but don't know how.
I have tried to use */721 for the minutes but values >60 are taken as a 0.
I am also unsure to use this:
Code:
[I]* */12 * * *[/I]
Because i don't really know what would it do, and i am afraid it would execute the script every minute during the 12th hour, and that could end up in spending too much resources unneededly.
So, anyone has any ideas on how could i do this?
Thanks in advance.