Consultor Eletrônico



Kbase P41484: How to change the WRKDIR enviroment variables on Unix?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/16/2005
Status: Verified

GOAL:

How to modify or change the WRKDIR environment variable on UNIX?

GOAL:

How can I change the $WRKDIR environment variable used by Progress?

GOAL:

How does Progress determine what to set $WRKDIR to?

GOAL:

What is my WRKDIR (Working Directory) being set to in Progress?

FACT(s) (Environment):

UNIX
Progress 9.x

FIX:

On UNIX platforms most people refer to the WRKDIR (Working Directory) as the current directory they are in. This is however, not the case with Progress. Progress sets the WRKDIR environment variable by default to the working directory path name you specified during the installation process. During the tailoring phase of the installation process, Progress scripts like proserve, proadsv and others are modified to have the WRKDIR environment variable reference this path name.

Example: During the installation when prompted for working directory, the administrator entered /usr/home

During the tailoring phase of the installation process the scripts used by Progress are modified to reference this path.

# Set the user working directory - this is a tailored value
for what_wrkdir in "$WRKDIR" "/usr/home" "."
do
[ ! -d "${what_wrkdir}" ] && continue
WRKDIR=$what_wrkdir
export WRKDIR
break
done

Our property files such as ubroker.properties also leverage off this environment variable by referencing $WRKDIR. The WRKDIR environment variable is used as a reference point to indicate where log files associated with the AdminServer, Name Server, AppServer and WebSpeed Brokers and Servers will be placed by default.

You can reference the information recorded in the $DLC/installd.ini file to determine the directory / path name that was entered for this environment variable. The installd.ini file also contains information regarding other path names and selections that were made during the Progress Installation.

If you need to change the path name that was provided during the installation process, you can modify the WRKDIR environment variable to reference a different directory / path name. This can be done by setting the WRKDIR environment variable. Progress references the WRKDIR environment variable first to see if it is set. If the variable is set then Progress will use that as the working directory. If the environment variable is not set, then Progress sets the WRKDIR environment variable to the path specified during the installation process.

To set the WRKDIR environment variable on a UNIX platform type the following at a UNIX Bourne or Korn sell.

WRKDIR=<new working directory>;export WRKDIR