![]() |
![]()
| ![]() |
![]()
NAMEdtspcdenv — environment Variable File for the CDE Subprocess Control Service DESCRIPTIONThe CDE Subprocess Control service provides the ability for a process running on one system to invoke another process on a different system. By default, the environment variables of the parent process are passed unmodified to the child process (on the remote host); however, there are some environment variables that are given special handling. In addition, the user or system administrator can specify environment variables that should be modified when they are passed to the child process. The system-wide environment files are: /usr/local/dt/etc/config/dtspcdenv and /usr/local/dt/config/dtspcdenv and the user-specific environment file is: $HOME/.dt/dtspcdenv. The file /usr/local/dt/config/dtspcdenv is created when CDE is installed. This file may be overwritten by subsequent CDE installations. Consequently, local variable definitions should be placed in the file /usr/local/dt/etc/config/dtspcdenv because this file is not overwritten during installation. The environment variable files are evaluated in the following order: local host: /usr/local/dt/config/dtspcdenv local host: /usr/local/dt/etc/config/dtspcdenv local host: $HOME/.dt/dtspcdenv remote host: /usr/local/dt/config/dtspcdenv remote host: /usr/local/dt/etc/config/dtspcdenv remote host: $HOME/.dt/dtspcdenv The precedence occurs in the reverse order of evaluation. Thus, variables in the remote host's $HOME/.dt/dtspcdenv file have the highest precedence and variables in the local host's /usr/local/dt/etc/config/dtspcdenv file have the lowest precedence. In this context, the local host is the host where a CDE client is running and the remote host is the host where a remote process will be started (on behalf of the local client). Lines beginning with a numer symbol (#) are considered comments and are not processed. The syntax for a non-commented line is: VAR_NAME=some_value
where VAR_NAME is the name of an environment variable and some_value is the value assigned to the variable. If some_value contains a variable reference, the reference will be replaced by the variable's value. For example, if a CDE client has the following definition in its environment: PATH=/bin:/sbin:/usr/local/bin
and the following definition occurs in one of the environment files: PATH=/opt/foo/bin:$PATH
then before the remote process is executed, PATH will be expanded to: PATH=/opt/foo/bin:/bin:/sbin:/usr/local/bin
The environment variable names may consist of letters, digits or underscores and may be enclosed in curly braces. The environment variable files may contain "unset &<variable_name>" commands to prevent an environment variable from being propagated to the remote process. For example, the following line would prevent the variable LIB_PATH from being propagated to the remote process: unset LIB_PATH
ENVIRONMENT VARIABLESThe dtspcd daemon treats the following variables specially:
EXAMPLESThe following definition sets the variable FOO_BIN_PATH to the value /var/foo/bin: FOO_BIN_PATH=/var/foo/bin FILES
SEE ALSOdtspcd(1m).
|