crontab not working

Tags
advanced, cron, crontab

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 10-17-2008
crontab not working

Dear all


We have SunOS 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V250

i have scheduled cronjob but its not working


Crontab details

15 15 * * * /d5/oratest/testdb/hotbackup_new.sh TEST247
15 15 * * * mkdir -p rajesh /d4/appltest

Crontab log details

> CMD: mkdir -p rajesh /d4/appltest
> root 990 c Fri Oct 17 14:10:00 2008
< root 990 c Fri Oct 17 14:10:00 2008 rc=2
> CMD: /d5/oratest/testdb/hotbackup_new.sh TEST247
> root 1130 c Fri Oct 17 15:15:00 2008
> CMD: mkdir -p rajesh /d4/appltest
> root 1131 c Fri Oct 17 15:15:00 2008
< root 1131 c Fri Oct 17 15:15:00 2008 rc=2
< root 1130 c Fri Oct 17 15:15:00 2008 rc=1
~
# 2  
Old 10-17-2008
If you use the search function, you will get a lot of stuff about people having problems with cronjobs and also there is this FAQ:

https://www.unix.com/answers-frequent...n-crontab.html

https://www.unix.com/unix-dummies-que...-cron-job.html


- Redirect it's output to a file
- Source the .profile or any environment defining file
- Use absolute paths
- Put it into a script maybe
- Read the FAQ
# 3  
Old 10-27-2008
Are the commandlines working correctly when using them from the commandline?
# 4  
Old 10-28-2008
Look in root mail for any error message from your cron.
BTW. Unusual to run an Oracle process from user root.
# 5  
Old 10-28-2008
The mkdir command looks suspect. The "-p" parameter just tells mkdir to create intermittent directories. As stated the command will create two directories: "rajesh" under root's home directory; and "/d4/appltest" .

In your example both your crons are set for the same time which may give you a problem sequencing the tasks. However the times in your cron log do not match the crontab described.
Login to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Crontab is not working BPANDEY Red Hat 5 09-17-2015 11:55 AM
Crontab not working Junaid Subhani Shell Programming and Scripting 7 06-06-2015 04:02 PM
Script not working via crontab ash1234 Shell Programming and Scripting 1 02-09-2015 06:32 AM
Script not working via crontab ash12345 Shell Programming and Scripting 6 02-08-2015 01:34 PM
Crontab not working krebe Linux 4 02-12-2013 05:50 AM
Script not working in crontab nandan8a Shell Programming and Scripting 9 08-08-2012 09:22 PM
Crontab not working, please help samantha13 UNIX for Advanced & Expert Users 0 08-02-2012 01:25 PM
crontab not working isaacniu Solaris 6 01-09-2012 06:41 PM
crontab is not working!! getrue Red Hat 14 09-08-2011 12:06 PM
crontab not working shifahim UNIX for Dummies Questions & Answers 8 08-16-2011 09:22 AM
crontab is not working. getrue Solaris 6 07-27-2011 01:34 AM
crontab not working lg123 UNIX for Dummies Questions & Answers 2 04-24-2011 04:47 PM
Crontab entry is not working jramesh1 UNIX for Dummies Questions & Answers 1 07-27-2010 05:07 AM
crontab NOT working baanprog UNIX for Advanced & Expert Users 2 09-26-2006 01:11 PM
crontab not working right kymberm UNIX for Dummies Questions & Answers 3 07-09-2003 05:21 PM
All times are GMT -4. The time now is 03:26 AM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?