env var

Where and how environment var are declared?

Where can I set and export some environment var to have these in text
mode, telnet, photon, …

I tried rc.local, rc.sysinit!

Thanks,
Alain.

Hello,

You can set your variables in ‘.profile’ located in your home directory.
eg:
export PS1=’$PWD#’

This will set the variable when that user logs in.

Regards,
Dave B.


Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

Where and how environment var are declared?

Where can I set and export some environment var to have these in text
mode, telnet, photon, …

I tried rc.local, rc.sysinit!

Thanks,
Alain.

Applications Mail Group a écrit :

Hello,

You can set your variables in ‘.profile’ located in your home directory.
eg:
export PS1=’$PWD#’

This will set the variable when that user logs in.

Regards,
Dave B.

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
Where and how environment var are declared?

Where can I set and export some environment var to have these in text
mode, telnet, photon, …

I tried rc.local, rc.sysinit!

Thanks,
Alain.

Ok, but I’d like to add /usr/local/lib to LD_LIBRARY_PATH for everybody. So,
the .profile file is not the best choice for that

For that you can use the ‘/etc/profile’ file.

Regards,
Dave B.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

Applications Mail Group a écrit :

Hello,

You can set your variables in ‘.profile’ located in your home directory.
eg:
export PS1=’$PWD#’

This will set the variable when that user logs in.

Regards,
Dave B.

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
Where and how environment var are declared?

Where can I set and export some environment var to have these in text
mode, telnet, photon, …

I tried rc.local, rc.sysinit!

Thanks,
Alain.

Ok, but I’d like to add /usr/local/lib to LD_LIBRARY_PATH for everybody. So,
the .profile file is not the best choice for that