SUMMARY-update: Cron scheduling

From: Teresa Biehler <tpbsys_at_rit.edu>
Date: Wed, 01 Mar 2000 10:20:22 -0500

After sending out this summary, I got a couple responses about the logic
of cron. Apparently cron does not use AND when joining the fields (or
at least the "weekday" field) on when to run something. So, the first
option I list below won't work.


Teresa Biehler wrote:
>
> I got a LOT of responses - THANK YOU!
>
> There are a couple of options:
>
> - Set it up in cron so that the script gets run when it is the 1st-7th
> day of the month and a Saturday. This will only be true when it's the
> first Saturday.
>
> - Have cron run the script on the 1st through the 7th. The first step
> of the script would be to test if it is Saturday. If yes, continue with
> the script, otherwise, exit.
>
> - Have cron run the script every Saturday. The first step of the script
> would be to test if the day of the month is less than 8. If yes,
> continue with the script, otherwise, exit.
>
> Thanks again to everyone who responded.
> Teresa
>
> Teresa Biehler wrote:
> >
> > Hi all,
> >
> > I have a script which I would like to run on the first Saturday of the
> > month. With cron I see how I can have it run on the first of the month
> > or on each Saturday, but not how would I get it to run on the first
> > Saturday of the month.
> >
> > Suggestions?
> >
> > Thanks.
> > Teresa
Received on Wed Mar 01 2000 - 15:27:04 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT