Sent by: cc:
[EMAIL PROTECTED] Subject: RE: how to schedule a job
every alternate sundays in unix cron
E-L
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc:
Subject: RE: how to schedule a job every alternate sundays in unix cron
what a freekin nightmare! I'd hate to be the next poor bloke who has to
decifer this...
Tom Mercadante
Ora
lol, actually
makes sense :). wondering how the perl version would look
like?Gene>>> [EMAIL PROTECTED] 07/17/03 02:49PM
>>>what a freekin nightmare! I'd hate to be the next poor
bloke who has todecifer this...Tom MercadanteOracle Certified
Professional-Original Message-Sent: Thursd
EMAIL PROTECTED]
07/16/2003 11:29 PM
Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc:
Subject: Re: how to schedule a job every alternate sundays in
unix cron
0 1 * * 0 /usr/bin/ksh -c "[ `date
Brilliant. :)
[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
07/16/2003 11:29 PM
Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
cc:
Subject: Re: how to schedule a job every alternate sundays in unix cron
0 1 * * 0 /usr/bin/ksh -c "[ `date '+\%a'` = 'Sun' -a $((`date '+\%U'` \%
2)) -eq 0 ] && /path/myscript.ksh"
This will run myscript.ksh on even Sundays at 1 a.m.
If ?'s, email me direct.
I'm not a Unix expert, but one thing you could do is schedule the script to run every
Sunday, then within the script add some logic so that the script completes every other
Sunday. For example, in ksh:
# Check to see if this script ran last Sunday.
if [[ -a ran_last_week.dat ]]; then
rm ran_l