Re: run script on cron job only run on first Saturdat every month???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Jul 31, 2013 at 8:35 AM, <m.roth@xxxxxxxxx> wrote:

>
> I agree with the original poster: why doesn't his work, which says 6 in
> the location for day of week, which is Sat.? I'd think it meet the
> criteria "it's somewhere between the 1st and the 7th of the month, and
> it's a Sat", and that I think should be the same as yours....
>

As Keith said, it's because the conditions are OR'd.  A careful reading of
crontab(5) shows that the algorithm is [minute AND hour AND (restricted day
of week OR restricted day of month) AND month].  Day of week and day of
month only restrict independently when one or both is "*".
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux