Package: cron Version: 3.0pl1-111 Severity: wishlist File: /usr/share/man/man5/crontab.5.gz
On the man page we see, Note: The day of a command's execution can be specified by two fields -- day of month, and day of week. If both fields are restricted (i.e., aren't *), the command will be run when either field matches the cur- rent 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. Well that was their design choice. Now the man page very much lacks an example of e.g., how to run something at 04:30 on the second Saturday of each month: 30 4 8-15 * * test $(date +%u) -eq 6 && command or 30 4 * * 6 d=$(date +%e) && test $d -ge 8 -a $d -le 15 && command (Anyway if they didn't make that design decision, we wouldn't need to resort to the shell above, and at worst in the above "OR" case, all they would need to do is repeat the line a second time: 30 4 1,15 * * command 30 4 * * 5 command) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org