i have a java file which i am running through shell script.
the syntax that i have used is
#! /bin/bash
javac Copy.java
#home/wbiadmin/JRE1.4.2/j2re1.4.2_15/bin/java Copy
/usr/bin/java Copy
this is my shell script
when i run it in terminal with command called ./runcopy.sh
it works fine
but when i run this shell script in cron it is not working.problem with java.lang
my cron is here:
1 * * /home/log/sari/./runcopy.sh
runcopy is shell script name.
help me out