3

Script not working through Cron - JDK version mismatch between shell and script

view full story
linux-howto

http://askubuntu.com – I am executing a script through cron using the below command: */10 * * * * cd /nas/app/someFolder/psox; ./RunPSOX.sh >> /tmp/trial.log 2>&1 This is being executed by root user. All PATH and JAVA_HOME have been set at the root level and exported. JDK 1.6 is being used. The script also has the PATH set inside it at the beginning (have tried both absolute and relative path), the JAVA_HOME and CLASSPATH too. I have added the "env" and "java -version" into the script before the logic. The script fails to work through cron but works when triggered manually. The reason is that the (HowTos)