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: Unix Cron Job

RE: Unix Cron Job

From: Smith, Ron L. <rlsmith_at_kmg.com>
Date: Thu, 04 Oct 2001 05:49:14 -0700
Message-ID: <F001.003A1B6E.20011004054519@fatcity.com>

Here is an example of a crontab listing: 15 07 * * 1-5 /u001/home/oracle/scripts/filescorp24.sh 00 07 * * * /u001/home/oracle/dbastuff/scripts/monitoring/rmerror.sh > /dev/null 2>&1
00,30 * * * * /u001/home/oracle/dbastuff/scripts/monitoring/cron15min.sh > /dev/null 2>&1
00 10 * * * /u001/home/oracle/dbastuff/scripts/monitoring/pager.sh zrls1 > /dev/null 2>&1
00 10 * * * /u001/home/oracle/dbastuff/scripts/monitoring/pager.sh rlsmith_at_kmg.com > /dev/null 2>&1
00 07 * * * /u001/home/oracle/dbastuff/scripts/monitoringnt/rmerror.sh > /dev/null 2>&1
00,30 * * * * /u001/home/oracle/dbastuff/scripts/monitoringnt/cron15min.sh > /dev/null 2>&1

To start out you will need to type out all the commands and save them in a file(filename).
Then just type "crontab filename" without the quotes. After that, you can see what is scheduled by typing "crontab -l". I always direct the output of the crontab -l statement to a file if I am getting ready
to change the schedule. That way I am sure I have the current schedule. To do this
just type "crontab -l > filename".

Keep in mind that each user has a possible crontab schedule. Issueing a "crontab -l"
will only tell you what you have scheduled, not everything that is scheduled on the server.
The man pages should help for the details.

Ron Smith
Database Administrator
rlsmith_at_kmg.com

-----Original Message-----
Sent: Thursday, October 04, 2001 3:55 AM To: Multiple recipients of list ORACLE-L

Have you tried using CRONTAB.

It's very, very easy (given my lack of Unix knowledge!!).

Just do a: $ man crontab in unix for more details.

K.

-----Original Message-----
Sent: 03 October 2001 17:21
To: Multiple recipients of list ORACLE-L

Hi List,
I am not a Unix person and want to scheduled a batch job to run on Unix machine every night at 1:00 AM, if you have any script for this or similar really appreciate.
Thanks in Advance

Hamid Alavi
Office 818 737-0526
Cell 818 402-1987

The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed, and may contain information that is PRIVILEGED, CONFIDENTIAL and exempt from disclosure under applicable law. If you have received this message in error, you are prohibited from copying, distributing, or using the information. Please contact the sender immediately by return e-mail and delete the original message from your system.
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Hamid Alavi
  INET: hamid.alavi_at_quovadx.com

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: 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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Thomas, Kevin
  INET: Kevin.Thomas_at_calanais.com
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: 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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Smith, Ron L.
  INET: rlsmith_at_kmg.com
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: 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). Received on Thu Oct 04 2001 - 07:49:14 CDT

Original text of this message

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