L
lbrtchx
Why wouldn't this work?
~
#!/bin/bash
MNT=/mnt/sdb5
JAVA_HOME=${MNT}/JApps/jdk/jdk1.6.0_01
export JAVA_HOME
echo $JAVA_HOME
PATH=${JAVA_HOME}/bin:$PATH
export PATH
echo $PATH
TOMCAT_HOME=/mnt/sdb5/JApps/tc/apache-tomcat-6.0.10
export TOMCAT_HOME
echo $TOMCAT_HOME
~
root@0[kd]# ls -l *.sh
-rwxr-xr-x 1 root root 241 May 4 16:51 javakpath00.sh
~
root@0[kd]# which bash
/bin/bash
~
root@0[kd]# bash -version
GNU bash, version 3.00.16(1)-release (i386-pc-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.
~
lbrtchx
~
#!/bin/bash
MNT=/mnt/sdb5
JAVA_HOME=${MNT}/JApps/jdk/jdk1.6.0_01
export JAVA_HOME
echo $JAVA_HOME
PATH=${JAVA_HOME}/bin:$PATH
export PATH
echo $PATH
TOMCAT_HOME=/mnt/sdb5/JApps/tc/apache-tomcat-6.0.10
export TOMCAT_HOME
echo $TOMCAT_HOME
~
root@0[kd]# ls -l *.sh
-rwxr-xr-x 1 root root 241 May 4 16:51 javakpath00.sh
~
root@0[kd]# which bash
/bin/bash
~
root@0[kd]# bash -version
GNU bash, version 3.00.16(1)-release (i386-pc-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.
~
lbrtchx