[CentOS] run script on cron job only run on first Saturdat every month???

Keith Keller kkeller at wombat.san-francisco.ca.us
Mon Aug 5 00:54:10 UTC 2013


On 2013-08-04, Darr247 <darr247 at gmail.com> wrote:
> On 2013-08-04 2:59 PM, Mark LaPierre wrote:
>
> > 15 4 1-7 * 7 /home/app/oracle/backup/monthlybk.sh
>
>
> Can you please point out what's wrong with
>
> 15 04 1-7 * 6 /home/app/oracle/backup/monthlybk.sh
>
> that makes it run every saturday instead of only the first saturday of 
> the month?

We have already gone over this.  The days columns are effectively ORed.
So the above job runs every day from the 1st to the 7th, and every
Saturday of the month.  Read man 5 crontab to see this documented.

--keith


-- 
kkeller-usenet at wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information





More information about the CentOS mailing list