Hi Karen,
Karen Heiby wrote:
>
> Hi Peter,
>
> So are you saying that I have to write the environment variables to the
> executable file of the process I want to start? Or do I need to write
> it in .bashprofile? Or where?
>
Settings are never written to the executable (as in DOS) because this would
not be multi-user friendly.
(In most cases you wouldnt have write permission for doing so)
You write the assignment command and the export command to a shell script.
eg.
TEST=123
export TEST
(For other shells than bash the syntax is different)
Global Variables go to /etc/profile.
Variables local to the current session goto ~/.bash_profile. (In some
distributions this is called ~/.profile)
If a programm needs special environment vars,then you would write a
startup script for this program,wich sets the environment and then
starts the program.
For example netscape is started this way.
Have a look to the script /usr/bin/netscape to have an example.
Also look to te first Mandrake CDROM
file:/mnt/cdrom/doc/HOWTO/DOS-Win-to-Linux-HOWTO
This is a good starting point for formerly DOS and Win$ users.
HTH, and greetings,
Peter