ChorusOS 4.0 Introduction

Modifying the System Environment

The system environment is defined by the 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