I've never needed to use cron before now, so its secrets remain a mystery to me. The handbook and man page appear to say (indirectly!) that '*' can mean either "all" or "not interpreted", and that conflicts are OR'd together. Do I have that right?
For example, to run a job at 0200 on the first of every month, I'd use
whereas to run a job at 0330 every Sunday would require
but
would run the job at 0400 if it's the first of the month OR it's a Sunday, rather than if it's the first of the month AND it's a Sunday.
And the same would be true, mutatis mutandis, for
meaning run the job at 0400 every other day AND on every Sunday
For example, to run a job at 0200 on the first of every month, I'd use
Code:
0 2 1 * *
whereas to run a job at 0330 every Sunday would require
Code:
30 3 * * 0
but
Code:
0 4 1 * 0
would run the job at 0400 if it's the first of the month OR it's a Sunday, rather than if it's the first of the month AND it's a Sunday.
And the same would be true, mutatis mutandis, for
Code:
0 4 */2 * sun
meaning run the job at 0400 every other day AND on every Sunday