Hi, I am trying to execute a cronjob which executes a Java Program. While i am running the cronjob in the shell it is running perfectly but when i try to run it thro cron it is giving me error as rc=1. Only 1 time it runs perfectly wheni changed the email.s from java program to echo "Testing" :):).
following is my crontable 40 12 * * 0-6 /sbin/sh /home/srini/email/mail.s my mail.s reads as follows: cd /home/srini/email /usr/local/jdk1.2.2.05a/bin/java TestingEMail Error > CMD: sh /home/srini/email/mail.s > root 15382 c Mon Aug 7 11:55:00 2000 < root 15382 c Mon Aug 7 11:55:01 2000 rc=1 > CMD: sh /home/srini/email/mail.s > root 15440 c Mon Aug 7 12:10:00 2000 < root 15440 c Mon Aug 7 12:10:00 2000 > CMD: sh /home/srini/email/mail.s > root 15474 c Mon Aug 7 12:16:00 2000 < root 15474 c Mon Aug 7 12:16:00 2000 rc=1 > CMD: /usr/bin/nice -20 /usr/bin/sh /home/srini/email/mail.s > root 15528 c Mon Aug 7 12:30:00 2000 < root 15528 c Mon Aug 7 12:30:01 2000 rc=1 > CMD: /sbin/sh /home/srini/email/mail.s > root 15572 c Mon Aug 7 12:40:00 2000 < root 15572 c Mon Aug 7 12:40:01 2000 rc=1 Can any1 shed some lightin thisone please.. Cheers Srini
