Re: Cron on certain days?

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



Scott Ehrlich wrote:
Is it possible for me to schedule cron to say run script A on the first Friday of the month, script B on the second Friday of the month, script C, etc.?

Yes. You just need to specify the "day of the week" and a "day of the month" with a range that can only happen for the first occurrence of the particular day in question:

	00 12 1-7 * Fri command-for-first-friday-of-month
	00 12 8-14 * Fri command-for-second-friday-of-month

Remember, cron must match *ALL* date/time specifiers.

I have not tested this, so it may not work as advertised.


Cheers,
Michael
_______________________________________________
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