Cron job every three days

Run it every three days… 0 0 */3 * * How about that? 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) % … Read more

how to set cronjob for 2 days? [closed]

From here: Cron also supports ‘step’ values. A value of */2 in the dom field would mean the command runs every two days and likewise, */5 in the hours field would mean the command runs every 5 hours. e.g. * 12 10-16/2 * * root backup.sh is the same as: * 12 10,12,14,16 * * … Read more