Crontab script failing


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Crontab script failing
# 1  
Old 04-03-2014
Crontab script failing

Hello,

A crontab script is failiing everyday but when we execute manually it runs fine

Below is the script scheduled:

Code:
00 23 * * * sh /db2backup/scripts/db2_hot_backup.ksh TRAVFF > /dev/null 2>&1

Error:

Code:
cat TRAVFF_online_04022014_2300.log
Started : Wed Apr  2 23:00:00 EDT 2014
SQL10007N Message "-1390" could not be retrieved.  Reason code: "3".
SQL10007N Message "-1390" could not be retrieved.  Reason code: "3".
SQL10007N Message "-1390" could not be retrieved.  Reason code: "3".
Completed : Wed Apr  2 23:00:00 EDT 2014


Below is the error code information from db2 manual:

Code:
The requested message <msgno> could not be retrieved from the message
file. Reason code <code> is one of the following:
3. The message file could not be found. Either the file does not exist,
   or the directory the message file should be in does not exist. Check
   that either a default directory or a directory with the same name as
   the 'LANG' environment variable exists under the message directory.

Please assist.

Best regards,
Vishal

Last edited by zaxxon; 04-03-2014 at 04:21 AM.. Reason: more code tags
# 2  
Old 04-03-2014
I asked you already not to ask everything in the AIX forum just because you use an AIX box. You often have more generic questions than AIX specific. You already got a reminder for this.
Also start using the search function because cron/crontab questions are asked very often and there is also a tutorial/guide for them on the forum which you can find here:
cron and crontab

And please use code tags also for technical text like the error message you posted.
# 3  
Old 04-03-2014
Like the venerable zaxxon already said: you are most likely falling for

Cron Error Number One

search for that in these forums and you eventually find one or the other million of hits.

Moderator's Comments:
Mod Comment This goes to the "Unix for Dummies" forum.


I hope this helps.

bakunin
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script runs good manually but failing via crontab

Hello Gurus, I have written small script which will start the given service if its stop .Its running fine when manually executed but its unable to run from crontab. #!/bin/bash SERVICENAME=rsyslog service $SERVICENAME status > /dev/null SYSLOGSTATUS=`echo $?` COUNT=0 THRESHOLD=3 if ... (4 Replies)
Discussion started by: kapil514
4 Replies

2. UNIX for Dummies Questions & Answers

Script test failing

Testing some old script developed by different user. #!/usr/bin/sh case "$0" in */*) cmd="$0";; *) cmd=`which "$0"`;; esac dir=`dirname "$cmd"` node="$dir/." echo $node below two simple tests are failing, I am not seeing any Control+M characters in the script file and I am not able... (4 Replies)
Discussion started by: srimitta
4 Replies

3. Shell Programming and Scripting

Script running in parallel failing!

Hi, I have a single script that was running fine in parallel on Linux 2.6.9-89 now it has been upgraded to Linux 2.6.18-308.24.1.el5 and the script has started to fail unpredictably. Is this an upgrade issue? As the script runs fine for some parallel threads while fails for others. Please... (4 Replies)
Discussion started by: Panna
4 Replies

4. Shell Programming and Scripting

SCP Failing - In Script

I create a file that may contain several full path name files on a remote Linux that are to be copied. This file, called AWKOUTPUT is created from another script. It contains: X/picture1.png The script is very simple ------------------------------------------- REMOTEDIR="/var/CC/Stuff"... (4 Replies)
Discussion started by: mohrsville12
4 Replies

5. Solaris

oracle cron script failing.

I have this oracle script which my dba is trying to run as a cron job that fails. attached is the script. It seems to run when executed by itself but just not when scheduled. (3 Replies)
Discussion started by: Kjons76
3 Replies

6. Shell Programming and Scripting

Expect script help needed- script failing if router unavailable

Hey all. Sometimes I'm tasked to change some router configs for the entire network (over 3,000 Cisco routers). Most of the time its a global config parameter so its done with a loop and an IP list as its the same configuration change for all routers. This is working OK. However, sometimes an... (3 Replies)
Discussion started by: mrkz1974
3 Replies

7. Shell Programming and Scripting

Script failing on Solaris 10 and working on 8

I have a script and code is like this .. if ]; then it's compiling about @ . what's the wrong in Solaris 10 with this? Thanks (1 Reply)
Discussion started by: talashil
1 Replies

8. UNIX for Dummies Questions & Answers

failing a unix script

i am basically DWH professional. I want to write a script such that whenver the file size is greather than 0 the script fails plz help me in this (1 Reply)
Discussion started by: er_zeeshan05
1 Replies

9. Shell Programming and Scripting

IF condition failing in a SSH script

Hi, I'm ssh-in to a remote machine (ubuntu) and trying to execute a little script in there.The script looks like this: ssh user@ubuntu <<EOF cd ~/test ls -l echo "Continue counting files starting with a`s ?" read answer if then ls -l a* else exit fi EOF Now everything works... (9 Replies)
Discussion started by: rubionis
9 Replies

10. UNIX for Advanced & Expert Users

UNIX script failing ....

Hi folks, I have written down a UNIX script which actually FTP the file to other server. What is happening now , this script is not working only for 1 server , as it is working for 32 different FTP server . In this particular server , we are getting message “FTp:550 access denied”... (1 Reply)
Discussion started by: khan1978
1 Replies
Login or Register to Ask a Question