I have tried two shell scripts and in both they have failed as after the shell exits the last command or export hasn't been kept. I presume the shell is executed and then when it exits, it removes the local command shell it used and wipes all changes before dumping you back to where you were.
My file is called: setJava.sh and is located in /usr/local/bin It looks like: <quote> export LD_LIBRARY_PATH=%LD_LIBRARY_PATH:/usr/local/OpenOffice.org1.1RC/program/: </quote> I can execute it. I have tried echoing the command to the line but that didn't work either. I don't want to set this in bashrc as I am not wanting to make a system wide permanent change to this variable only a temporary one while I run a java programme. My other script used the command cd /some.dir/some/subdir but once it finished executing it also left me back in my original location. What have I missed. in windows batch this would suceeed but not here obviously. TIA, Shane -- Shane Hollis Notes Unlimited New Zealand Ph: 021 465 547 Email: [EMAIL PROTECTED]
