Home » Infrastructure » Linux » CRON IS NOT RUNNING ON MY SYSTEM (ORACLE 11g R1 on centos)
CRON IS NOT RUNNING ON MY SYSTEM [message #456607] Tue, 18 May 2010 13:04 Go to next message
PanamDimas
Messages: 63
Registered: April 2010
Location: Maryland . U.S.A
Member
Hello I am new to oracle and new to linux.

I have problem making cron run my backup. I also have problem with the syntax on how to mail the output to my gmail account.
I need help please.

Here are the details:

Oracle# crontab -e
00 23 * * 2 /home/oracle/dbascripts/fullbackup.sh | mail -s "fullbackup" dbawork@gmail.com

my network time protocol shows military time but my system shows 12 hourly time.

I need help with the syntax and how to go about scheduling the cron

Thank you

Panam
Re: CRON IS NOT RUNNING ON MY SYSTEM [message #456621 is a reply to message #456607] Tue, 18 May 2010 20:08 Go to previous message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
# Minute   Hour   Day of Month       Month          Day of Week        Command    
# (0-59)  (0-23)     (1-31)    (1-12 or Jan-Dec)  (0-6 or Sun-Sat)              


below will run every minute
* * * * * env | sort -o /tmp/capture.env

Place line above in your crontab file & then repeatedly do following to watch timestamp change

ls -l /tmp/capture.env
Previous Topic: CRONTAB IS NOT RUNNIG MY SCRIPT ON LINUX
Next Topic: Shell script for Tablespace Critical alert
Goto Forum:
  


Current Time: Fri Mar 29 08:04:15 CDT 2024