Consultor Eletrônico



Kbase P115009: What is the proset.env file?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/02/2009
Status: Verified

GOAL:

What is the proset.env file?

FACT(s) (Environment):

Progress 9.1x
OpenEdge 10.x
All Supported Operating Systems

FIX:

For convenience and debugging purposes a file was created, proset.env in 9.1A and later versions to facilite environment configuration.

To override any of the settings in the Progress scripts, create a file proset.env in the current working directory and set any environment variables in that
file in the same way it would be done for any Bourne shell script i.e.
Example:
# proset.env - application environment changes
# Adjust the PROPATH to also include the web/examples directory.
PROPATH=$PROPATH:$DLC/src/web/examples
export PROPATH

The file must be named "proset.env" and it must be in the current working directory.
The proset.env is invoked by the Progress scripts and it is called using a relative reference so wherever the user is invoking the Progress scripts is where the proset.env should be located.

The following is the script section which invokes the proset.env:
if [ -f proset.env ]
then
echo "Loading settings from proset.env"
. ./proset.env
fi

As coded above once the script is invoked it looks in the current directory for proset.env.

The invocation of proset.env isn't performed till the latter half of most scripts so depending on what the user intends to override, the section of script may need to be moved earlier in calling script so any dependent references pick up entries listed in the proset.env.