This will run the job every 28 daze at 1am. If that's not exactly the definition of every 4th week let me know and I'll work something out. Also note that you will have an anomaly at the end of leap years.
0 1 * * * /usr/bin/ksh -c '[ $(($(date '+\%j') \% 28)) -eq 0 ] &&
/path/to/my/job/the_job'
Roland.Skoldblom@
ica.se To: Multiple recipients of list
ORACLE-L <[EMAIL PROTECTED]>
Sent by: cc:
[EMAIL PROTECTED] Subject: Unix - scheduling
07/02/02 01:43 AM
Please respond to
ORACLE-L
Hallo,
anyone who has a good example on how to write in the crontab if you want to
schedule a job to run every four week.
Is it possible to do that in unix cron job schedule.
Thanks in advance
Roland
--
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).
