I am on a solaris 9 machine.
I created a simple script to set environment variables:
When I run the script and echo the above two env variables It's still set to the original values. If I manually type in the above 2 commands then it works. So why is my script not doing the same thing? (I get a feeling it something about subshells and root..that I just do not understand)
Thanks.
I created a simple script to set environment variables:
Code:
#!/bin/ksh
export PATH=/usr/local/java/jdk1.5.0_03/bin:$PATH
export JAVA_HOME=/usr/local/java/jdk1.5.0_03
When I run the script and echo the above two env variables It's still set to the original values. If I manually type in the above 2 commands then it works. So why is my script not doing the same thing? (I get a feeling it something about subshells and root..that I just do not understand)
Thanks.