Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    The man page linked from that answer is pretty clear that they are not mutually exclusive: "Note: The day of a command's execution can be specified in the following two fields — 'day of month', and 'day of week'. If both fields are restricted (i.e., do not contain the * character), the command will be run when either field matches the current time. For example, "30 4 1,15 * 5" would cause a command to be run at 4:30 am on the 1st and 15th of each month, plus every Friday." Commented Aug 1, 2020 at 4:56
  • 1
    As it says in the passage you quoted: “Commands are executed by cron(8) when (…) at least one of the two 'day' fields ('day of month', or 'day of week') match the current time”. I don't see what else there is to add. It's not an error, it has a well-defined, and pretty much useless behavior. Commented Aug 1, 2020 at 9:16
  • @Gilles'SO-stopbeingevil', but is it standard well-defined useless behavior, or well-defined useless behavior specific to one flavor of cron? Commented Aug 2, 2020 at 22:47