jar through cron job
Hi I have to run cron job for which a.sh file is below.
jar file is in
/home/wasadmin/jar.Both a.ct and a.sh is also in same jar folder
now issue is if i run this jar through cron nothing is happening as
application is not able to get application properties.
but if i run this command from /home/wasadmin/jar folder it is running perfectly(means not through cron). any idea as i need to run through cron
/usr/java/j2sdk1.4.2_12/bin/java -jar /home/wasadmin/jar/A.jar
any idea.
a.sh file
#!/bin/sh
/usr/java/j2sdk1.4.2_12/bin/java -jar /home/wasadmin/jar/A.jar
echo hello
a.ct
* * * * * /home/wasadmin/jar/a.sh
|