Core iTOps Tube

Monday, 7 May 2012

Rexec Issue

Hi Team,



I am executing some ksh scripts which inturn calls java files in AIX Environment. We have installed java6_64 which is in .profile. But when we execute from rexec its taking path from some different place that does not have java in $PATH variable. Can you please help me find out which $PATH needs to be changed to add java..




Code:


PWD=`pwd`

echo " HOME $HOME "

echo "PWD $PWD"

echo "SHELL : $SHELL "

echo "PATH $PATH "

echo "JAVA_CLASSPATH_VALUE : ${JAVA_CLASSPATH_VALUE} "

echo "JAVA_HOME $JAVA_HOME"

java -version


Output:




Code:


[home/test] >rexec -n 159.202.157.67 "./test.ksh"

Name (hostname_persistent:batch): batch2

Password (hostname_persistent:batch2):

./test.ksh[8]: java:  not found

 HOME /home/batch2

PWD /home/batch2

SHELL : /bin/ksh

PATH /usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin

JAVA_CLASSPATH_VALUE :

JAVA_HOME

[/home/batch] >


Regards




No comments:

Post a Comment