How to instruct cron to execute a job every second week?
Answer Modify your Tuesday cron logic to execute every other week since the epoch. Knowing that there are 604800 seconds in a week (ignoring DST changes and leap seconds, thank you), and using GNU date: 0 6 * * Tue expr `date +\%s` / 604800 \% 2 >/dev/null || /scripts/fortnightly.sh Aside Calendar arithmetic is frustrating. … Read more