I have a problem with running a
java program as cronjob. Here are the files:
Reminder.sh
-----------
export PATH=$PATH: (many path)
export CLASSPATH=$CLASSPATH: (many classpath)
echo 'classpath=' $CLASSPATH > /tmp/tmpfile
/usr/java/j2sdk1.4.2_09/bin/java com.wipro.innovation.scheduler.task.Reminder
Reminder.cronjob
----------------
30 17 ** * /home/com/wipro/innovation/scheduler/cron/Reminder.sh > /tmp/cronjob.log 2>&1
I have executed cronjob Reminder.cronjob to install the cronjob. I expect the Reminder java file to be run at 17:30 and /tmp/tmpfile and tmp/cronjob.log files to be created. But nothing is happening at 17:30. But when Reminder.sh is run manually, I am getting the expected result. What am I missing?