The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
curl from crontab not working eBay UNIX for Dummies Questions & Answers 1 06-29-2008 02:58 PM
crontab-nmon not working fara_aris AIX 5 06-03-2008 06:08 AM
crontab NOT working baanprog UNIX for Advanced & Expert Users 2 09-26-2006 01:11 PM
crontab command not working digant UNIX for Advanced & Expert Users 8 01-04-2004 09:46 PM
crontab not working right kymberm UNIX for Dummies Questions & Answers 3 07-09-2003 05:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-17-2008
rajesh_hv rajesh_hv is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 1
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 (permalink)  
Old 10-17-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,311
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:

cron and crontab

Oracle Apps Cron Job


- 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 (permalink)  
Old 10-27-2008
jacco jacco is offline
Registered User
  
 

Join Date: May 2008
Posts: 15
Are the commandlines working correctly when using them from the commandline?
  #4 (permalink)  
Old 10-28-2008
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,184
Look in root mail for any error message from your cron.
BTW. Unusual to run an Oracle process from user root.
  #5 (permalink)  
Old 10-28-2008
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,184
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0