ChorusOS 5.0 System Administrator's Guide

Modifying the System Environment

The system environment is defined by a set of dynamic parameters. The system environment is a set of name-value pairs, where name and value are character strings. Values for system environment variables can be obtained by the system and applications at runtime using the sysGetEnv(2K) system call.

To display all the system environment variables, type:


% configurator -list env

To set a new environment variable, or change its value:


% configurator -setenv envar=value

Here is an example:


% configurator -setenv MESSAGE='HelloWorld'  

To unset a variable, so that it is removed from the environment, type:


% configurator -resetenv envar