Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> 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_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.
![]() |
![]() |