i have schduled a job through crontab, but it is not getting executed.
bash-3.2$ crontab -l
# Monthly Download (mm hh DD MM format)
35 05 01 04 * /home/ftpsrp/srpftp1/download/ofrdb/scripts/load_ofrdb.sh crr.sh
here is the permission of the .sh files
-rwxr--r-- 1 ftpsrp srp 9433 Apr 1 04:07 load_ofrdb.sh
-rwxr--r-- 1 ftpsrp srp 12217 Apr 26 2007 crr.sh
what do i need to check here, please suggest??
its urgent so any quick reply is highly appriciated.
Did it start and crash, or did it just simply not run? Check the system log files for cron entries. It's wise to create and keep an error log file redirecting stderr to a file...
A cron job does not have a terminal associated to it, so those commands must fail. Sourcing your .profile in the cron job is a good idea, on the other hand, as your script will have all your environment variables at its disposal, should it need them. You may need to split .profile into one general part and one part for interactive logins that cron would skip, then.