Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Crontab - Ooops

Re: Crontab - Ooops

From: David A. Barbour <dbarbour_at_nucentrix.net>
Date: Fri, 23 Mar 2001 21:32:13 -0800
Message-ID: <F001.002D708F.20010323211030@fatcity.com>

Charlie,

Some days are like that. You're right. Mike Hand had the right idea when he wrote:

.......... 2 choices are

MM HH 22-28 * * (shell script checks for Sunday before proceeding)

        OR
MM HH * * 0 (shell script checks for day of month between 22 and 28 before
proceeding)

Mike

Charlie Mengler wrote:
>
> Just curious.
>
> Using your algorithm, what happens on those rare months
> where there are FIVE sundays?
>
> "David A. Barbour" wrote:
>
> > Luc,
> >
> > One possible solution:
> >
> > Run the cron every Sunday and have the first part of your shell script
> > check to see if that day's date plus seven days falls into another
> > month.
> >
> > Regards,
> >
> > David A. Barbour
> > Oracle DBA
> > Formerly with the now defunct and bankrupt ConnectSouth
> >
> > "DEMANCHE Luc (Cetelem)" wrote:
> > >
> > > Hi gurus,
> > >
> > > I want to schedule a script to run on the fourth sunday of the month.
> > >
> > > How can I do that ?
> > >
> > > TIA
> > >
> > > -----------------
> > > Luc Demanche
> > > CETELEM
> > > TÚl.: 01-46-39-14-49
> > > Fax : 01-46-39-59-88
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author: David A. Barbour
> > INET: dbarbour_at_nucentrix.net
> >
> > Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> > San Diego, California -- Public Internet access / Mailing Lists
> > --------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an E-Mail message
> > to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> > the message BODY, include a line containing: UNSUB ORACLE-L
> > (or the name of mailing list you want to be removed from). You may
> > also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: David A. Barbour
  INET: dbarbour_at_nucentrix.net

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Mar 23 2001 - 23:32:13 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US