Crontab question: I am new to unix and need to kickoff a reboot on a server on the first sunday of the month. So, my initial response was to use cron to do this for.
My cron was going to look like this: 30 0 1-7 * 0, so being new I presented this to several other unix folks whom told me that cron doesn't work that way...
My question is...How does cron handle the translation of the above? what's in between each statement add's or or's?
Does it interpret it as if it's 30 minutes after midnight and the date is 1 thru 7 and it's any month and it's Sunday?
OR, is there an Or somewhere in there?
The other unix folks explained to me that my cron tab would reboot the server on the 1st, 2nd, 3rd, 4th, 5th, 6th, and the 7th of the month as well as on Sunday.
Any clearity / help or documentation would be greatly appreciated.
My cron was going to look like this: 30 0 1-7 * 0, so being new I presented this to several other unix folks whom told me that cron doesn't work that way...
My question is...How does cron handle the translation of the above? what's in between each statement add's or or's?
Does it interpret it as if it's 30 minutes after midnight and the date is 1 thru 7 and it's any month and it's Sunday?
OR, is there an Or somewhere in there?
The other unix folks explained to me that my cron tab would reboot the server on the 1st, 2nd, 3rd, 4th, 5th, 6th, and the 7th of the month as well as on Sunday.
Any clearity / help or documentation would be greatly appreciated.