How are environment variables set?
You can use these methods to set or change values for environment variables:
- If you are an administrator, you can set Linux environment variables and InfoPrint Manager environment variables in the /etc/environment file.
Settings in these files apply to all sessions for all users, unless users override them through their /etc/profile.d/ipm_environment.sh files or from the command line.
- You can modify your /etc/profile.d/ipm_environment.sh file in your home directory by using a Linux editor. Settings in the /etc/profile.d/ipm_environment.sh file override settings in the /etc/environment file. These settings apply only to you and are in effect for all Linux sessions, unless you override the settings from the command line.
- You can enter one of these commands on the command line to set environment variables
for a single Linux session:
- In the Bash shell or the Bourne shell, use the export command.
You cannot change the environment of a running process. If you change the value of an environment variable, you must restart any process that was started before the change if the change is to take effect for that process. For example, an InfoPrint Manager server is a process. If you change the /etc/profile.d/ipm_environment.sh file, you must stop and start the server again for the change to take effect.