RE: CRon help

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@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx]On Behalf Of David
Sent: Wednesday, June 22, 2005 12:34 PM
To: oracle-l@xxxxxxxxxxxxx
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@xxxxxxxxxxx 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@xxxxxxxxxxxx
--
http://www.freelists.org/webpage/oracle-l

Other related posts: