Hello
I'm running as root on KNOPPIX cd. I want to run a shell script to append to the PATH. If I enter "export PATH=$PATH:/newdir" at the command line it works. If I try to execute in my script it fails. Is there a simple way to do this in my script?
If I append to /etc/profile I have to rerun the profile from my script. I don't want to do that.
Thanks,
Dan
I'm running as root on KNOPPIX cd. I want to run a shell script to append to the PATH. If I enter "export PATH=$PATH:/newdir" at the command line it works. If I try to execute in my script it fails. Is there a simple way to do this in my script?
If I append to /etc/profile I have to rerun the profile from my script. I don't want to do that.
Thanks,
Dan