Hello,
Here is my crontab
# Reboot one Sunday out of 2 at 02:00
0 2 * * 0/2 /usr/bin/reboot
2017-04-16
2017-04-23
2017-04-30
and so on
I tested my crontab here, it seems to work
Http://cron.schlitt.info/index.php?c...=100&test=Test
However on my distrib linux mage�a
When I register my crontab, I have the error
Bad day-of-week
Errors in crontab file, can not install
Thank you for your help
vbe
2
You did not say what OS its for. cron is implemented differently on linux v.s. Std UNIX systems
I mentioned it.
This is Mageia based Mandriva
vbe
4
Sorry, still half asleep... I wonder if the one sunday out of 2 is understood...
RudiC
5
What does your man crontab
say about step values? Mine says
So - 0/2
wouldn't work.
And, looking again at it, that wouldn't satisfy your logics either. Day-of-week 0-7/2
would mean Sunday, Tuesday, Thursday, Saturday .
Use 0
and discriminate every other Sunday within the script.