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: CRon help

RE: CRon help

From: Roger Xu <roger_xu_at_dp7uptx.com>
Date: Wed, 22 Jun 2005 14:32:19 -0500
Message-ID: <A6801E8A03316A4DA597866F77A013F7059C95F0@irv2kexch01.tx.bg.corp>


Try this:

00 8 15-22 * * [ "`date +\%a`" = "Sun" ] && /usr/local/bin/yourstuff.sh

or

if [ `date '+%a'` = "Sun" ]
then

    .. run your stuff here ..
else

    exit
fi

-----Original Message-----

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of David Sent: Wednesday, June 22, 2005 12:34 PM
To: oracle-l_at_freelists.org
Subject: CRon help

Not exactly Oracle specific, but I know many of you know the answer to this I imagine...
How can I schedule a cron job to submit a job on the thurd Sunday of every month.

I took at a stab at it thusly:
00 8 15-22 * 0

But now I realize that is an OR condition and so jobs every sunday and on the 15-22 are getting submitted instead of just every sunday that falls on the 15-22.

Any help/inisight appreciated!!
--

..
David

--

http://www.freelists.org/webpage/oracle-l

For technical support please email tech_support_at_dp7uptx.com or you can call (972)721-8257.
This email has been scanned for all viruses by the MessageLabs Email Security System.

This e-mail is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. Any review, dissemination, copying, printing or other use of this e-mail by persons or entities other than the addressee is prohibited. If you have received this e-mail in error, please contact the sender immediately and delete the material.



This email has been scanned for all viruses by the MessageLabs Email Security System. Any questions please call 972-721-8257 or email your request to tech_support_at_dp7uptx.com.
--

http://www.freelists.org/webpage/oracle-l Received on Wed Jun 22 2005 - 15:42:50 CDT

Original text of this message

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