[This comment was seemingly hidden?] > The real question is, why is "[ $(date +\%w) -eq 0 ]" in there, when cron can do day-of-week like: > > 24 0 8-14 * 0 root [ -x /usr/lib/zfs-linux/scrub ] && /usr/lib/zfs- linux/scrub
This is because if you specify the "day of month" and the "day of week" fields, they are ORed, not ANDed. From crontab(5), "If both fields are restricted (i.e., aren't *), the command will be run when either field matches the current time." -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1860228 Title: addition of zfsutils-linux scrib every 2nd sunday To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1860228/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
