Cron job every three days?

If you want it to run on specific days of the month, like the 1st, 4th, 7th, etc... then you can just have a conditional in your script that checks for the current day of the month. If (((date('j') - 1) % 3)) exit(); or, as @mario points out, you can use date('k') to get the day of the year instead of doing it based on the day of the month.

Maybe...don't know I'm asking you...lol – whatshakin Dec 28 '10 at 21:12 @whatshakin: It'll depend on how accurate you want "every three days" to be. This will work on any day which is divisible by 3. On month boundaries it won't be exact.

– David Dec 28 '10 at 21:14 @whatshakin: The cronjob syntax is even described on Wikipedia: en.wikipedia. Org/wiki/Cronjob – Felix Kling Dec 28 '10 at 21:15.

3 * * that says, every minuet of every hour every third day. 0 0 */3 * * says at 00:00 (midnight) every three days.

It would be simpler if you configured it to just run e.g. On monday and thursdays, which would give it a 3 and 4 day break. Otherwise configure it to run daily, but make your php cron script exit early with: if (! (date("z") % 3)) { exit; }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions