To maintain the environment variables after the script exits you need to invoke with:
. <scriptname> Neale On Tue, 2007-01-16 at 13:39 -0500, Bates, Bob [CCC-OT_IT] wrote: > OK, I'm stumped. This ought to be easy but I don't see it. > > Running a script to update the $PATH and set a few others. But they > don't change. > > Running in bash > > The script is: > #!/bin/bash > > set NETE_WA_ROOT=/opt/netegrity/webagent > export NETE_WA_ROOT > > NETE_WA_PATH=${NETE_WA_ROOT}/bin > export NETE_WA_PATH > > LD_LIBRARY_PATH=${NETE_WA_ROOT}/bin:${LD_LIBRARY_PATH} > export LD_LIBRARY_PATH > > PATH=${NETE_WA_PATH}:${PATH} > export PATH > > > I've echoed out the variables and they look right in the script, but > after it runs nothing has changed. > > Help!?! ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390