Verifying Harvest environment variable settings on linux or unix
search cancel

Verifying Harvest environment variable settings on linux or unix

book

Article ID: 124493

calendar_today

Updated On:

Products

CA Harvest Software Change Manager - OpenMake Meister CA Harvest Software Change Manager

Issue/Introduction

When you get an error message that a dependent library is missing, it is helpful to verify the exact environment variable settings being used by Harvest.  Here is an easy way to do that.

Environment

CA Harvest SCM all versions on Linux or Unix platforms

Resolution

When looking at the files in the Harvest installation "bin" folder on the Linux/Unix platforms, all the files there are shell scripts.  The scripts set all the relevant environment variables, and at the end, they run the corresponding executable from the "lib" folder.  Using this procedure you can echo back the exact environment variable settings the Harvest command is using when it runs.

# make sure you're logged in as the user that owns the $CA_SCM_HOME folder and files (for example, if your “owner” userid is “cascm”): 
su - cascm 

# cd to the bin folder 
cd $CA_SCM_HOME/bin 

# make a copy of one of the command scripts and rename it "test" 
cp hdbsetup test

# comment out the last line of the script that starts with "exec " 
sed -i 's/exec /#exec /g' test

# add a new last line to run the "env" command - returns the current environment variable settings 
sed -i -e '$a\env' test

# execute the new script 
./test