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]



>From: mcclnx mcc <mcclnx@xxxxxxxxxxxx>

>

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

That's pretty clever, and it looks like it should work.
Maybe something is taking priority?
I'd try some experimentation.  Try:

15 04 1-7 <today.day.number> 6 touch /tmp/foo.test

15 04 1-7 <today.day.number> * touch /tmp/foo.test

15 04 1-7 * * touch /tmp/foo.test

15 04 * * 6  touch /tmp/foo.test 

etc.
It might take a while, but you'll find it eventually!

I had a similar problem with Debian, but it turned out to be a weird timezone issue confusing me.
_______________________________________________
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