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 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

_______________________________________________
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