Setting environment variables

You can use the export command to set environment variables:

  • If you are an administrator, in an environment file.
    • You can set environment variables and many InfoPrint environment variables in the /etc/environment file.
    • You can set some InfoPrint environment variables that affect the InfoPrint SMIT operator's interface in the InfoPrint SMIT operator's interface environment file. The PPO_DEFAULT_ENV environment variable defines the name of this file.

    Settings in the environment files apply to all sessions for all users, unless a user resets the environment variables in the .profile file or on the command line.

    Note: These settings do not apply to processes that are already running when you edit the file. For example, a server is a process. To make your changes effective, stop and restart the server.

  • In the .profile file in your home directory. Settings in the .profile file override settings in the /etc/environment file and the InfoPrint SMIT operator's interface environment file. These settings apply only to you and are in effect for all your sessions, unless you reset the environment variables on the command line.
  • On the command line for a single session. Command line settings override settings in the /etc/environment file, the InfoPrint SMIT operator's interface environment file, and your .profile file. These settings apply only to you and are in effect only until you exit the session.