INFORMIX
Informix Guide to SQL: Reference
Chapter 3: Environment Variables
Home Contents Index Master Index New Book

Checking Environment Variables with the chkenv Utility

The chkenv utility checks the validity of shared or private environment-configuration files. Use it to provide debugging information when you define, in an environment-configuration file, all the environment variables that are used by your Informix products

.
Element Purpose Key Considerations

filename

Specifies the name of the environment-configuration file that you want to debug.

None.

The common environment-configuration file is stored in $INFORMIXDIR/etc/informix.rc. A private environment-configuration
file is stored in the home directory of the user as .informix.

Issue the following command to check the contents of the shared environment-configuration file:

The chkenv utility returns an error message if it finds a bad environment-variable entry in the file or if the file is too large. You can modify the file and rerun the utility to check the modified environment-variable settings.

Informix products ignore all lines in the environment-configuration file, starting at the point of the error, if the chkenv utility returns the following message:

If you want the product to ignore specified environment-variable settings in the file, you can also set the ENVIGNORE environment variable. For a discussion of the use and format of environment-configuration files and the ENVIGNORE environment variable, see page 3-43.




Informix Guide to SQL: Reference, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.