RE: how to schedule a job every alternate sundays in unix cron

2003-07-17 Thread Brian_P_MacLean
Sent by: cc: [EMAIL PROTECTED] Subject: RE: how to schedule a job every alternate sundays in unix cron

RE: how to schedule a job every alternate sundays in unix cron

2003-07-17 Thread Jared . Still
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

RE: how to schedule a job every alternate sundays in unix cron

2003-07-17 Thread Gene Sais
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

RE: how to schedule a job every alternate sundays in unix cron

2003-07-17 Thread Mercadante, Thomas F
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 &#

Re: how to schedule a job every alternate sundays in unix cron

2003-07-17 Thread Jared . Still
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

Re: how to schedule a job every alternate sundays in unix cron

2003-07-16 Thread Brian_P_MacLean
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.

Re: how to schedule a job every alternate sundays in unix cron

2003-07-16 Thread Jay Hostetter
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