Skip to content

crontab ​

the_command runs only on odd days ​

bash
test $(((`date +%j` % 2))) != 0 && the_command

the_command runs only on odd minutes ​

bash
test $(((`date +%M` % 2))) != 0 && the_command

the_command runs only on even days ​

bash
test $(((`date +%j` % 2))) == 0 && the_command

the_command runs only on even minutes ​

bash
test $(((`date +%M` % 2))) == 0 && the_command