5 Aug
2004
5 Aug
'04
01:15
On Wednesday 04 August 2004 21:00, Misty Stanley-Jones wrote:
Every 18 hours huh? 18 is a multiple of 6. 6*3 is 18, 6*4 is 24. Every 18 hours would be 6, 24, 18, 12. Run the cron job at all of these times, have it check for a file /tmp/should_run that gets generated when the script should run.
Excellent idea, much better than mine. The only thing I would change would be to not put the "should_run" file in /tmp. It should go in a directory with more restrictions, so general users can't create it and make the job run at off hours. Aside from that, brilliant