Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Failed cron job.. any clues why? 1

Status
Not open for further replies.

MCubitt

Programmer
Mar 14, 2002
1,081
GB
Hi there.

A cron job fails as:

tle : CMD ( . /oracle/tle/edi_env_sh; $EDIH/xlate/bin/tlreqc -p 4200 -u TLECRON -r Xlato -p -e -l -c $EDIH/xlate/outbound_translation ) : Wed Jul 7 18:45:00 2004
Cron Job with pid: 26130 Failed

tle : CMD ( . /oracle/tle/edi_env_sh; $EDIH/bin/cgw -q OKML -r XMIT ) : Wed Jul 7 18:55:00 2004
Cron Job with pid: 63414 Failed

How can I find out the cause, is there a trace file or something?

Thanks

There's no need for sarcastic replies, we've not all been this sad for that long!
 
Try creating your own log with something like redirecting output from the jobs to a file: yourscript > log.txt 2>&1 should do it. HTH.
 
dont forget:
cron has a very restricted environment
 
Thanks guys, we're work on it. Ta.

There's no need for sarcastic replies, we've not all been this sad for that long!
 
I take it these jobs complete if run from the command line? If that's the case, iribach has probably hit the nail on the head and you should ensure that any necessary variables (particularly $PATH) are set explicitly in the script or in a wrapper for the script. Good luck.
 
Thanks, we are just in the process of testing that theory. The cron jobs were installed by a software supplier. The 1st error has been identified as a typo in the path name (a common mistake!).

Thanks

There's no need for sarcastic replies, we've not all been this sad for that long!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top