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: how to schedule a job every alternate sundays in unix cron

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

From: Jay Hostetter <jhostetter_at_decommunications.com>
Date: Wed, 16 Jul 2003 08:50:57 -0400
Message-Id: <25937.338007@fatcity.com>


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_last_week.dat
  exit
else
  # Create a file to signal that the script ran.   touch ran_last_week.dat
 <....rest of script >

Jay

>>> kommacnu_at_yahoo.com 07/16/03 09:09AM >>>
Hello All,  

OS: Solaris 2.8   

I have to run a backup script in every alternate Sunday.  

I cant find a way to submit it in cron.   

Can somebody help me how to setup a job to run alternate Sundays in unix cron .   

Thanks and Regards,
Srinivas  



Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net 
-- 
Author: kommareddy sreenivasa
  INET: kommacnu_at_yahoo.com 

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com 
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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).





**DISCLAIMER
This e-mail message and any files transmitted with it are intended for the use of the individual or entity to which they are addressed and may contain information that is privileged, proprietary and confidential. If you are not the intended recipient, you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received this communication in error, please notify the sender and delete this e-mail message. The contents do not represent the opinion of D&E except to the extent that it relates to their official business.
Received on Wed Jul 16 2003 - 07:50:57 CDT

Original text of this message

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