Hello.
My system FreeBSD 12.2.
Crontab rules.
It must operate only on Saturdays.
Today is Sunday.
Man crontab (day of week 0-7 (0 or 7 is Sun, or use names)), 0 or 7 is Sunday, so 6 is Saturday.
My system FreeBSD 12.2.
Crontab rules.
Why did this rule work (40 2 2-31 * 6 sh /root/cloud_YD/saturday)?# once a month, 1st day.
40 2 1 * * sh /root/cloud_YD/mount
# On Saturdays except the 1st.
40 2 2-31 * 6 sh /root/cloud_YD/saturday
# Every day, except on the 1st numbers and Saturday.
40 2 2-31 * 0-5 sh /root/cloud_YD/daily
It must operate only on Saturdays.
Today is Sunday.
Man crontab (day of week 0-7 (0 or 7 is Sun, or use names)), 0 or 7 is Sunday, so 6 is Saturday.