[CentOS] run script on cron job only run on first Saturdat every month???
John R Pierce
pierce at hogranch.com
Tue Jul 30 21:01:22 UTC 2013
On 7/30/2013 1:43 PM, mcclnx mcc wrote:
> we have CENTOS 5.5 on DELL server. One of our script need run on first Saturday every month.
>
> We have following setup on cron job but it run every Saturday.
>
> 15 04 1-7 * 6 /home/app/oracle/backup/monthlybk.sh
>
> Any one know how to fix it?
I don't believe cron has any concept of the first day-of-week of each
month, so you'll need to put some code into your script to exit if its
NOT the first day-of-week of each month.
--
john r pierce 37N 122W
somewhere on the middle of the left coast
More information about the CentOS
mailing list