<!-- Oracle Remote Diagnostic Agent / Data Collection Results 4.29 -->
<!-- Module:S301WREQ Version:1.48 Report:log_getproperty_sh OS:linux -->
---+ Display of getproperty.sh File
---## Information Taken from /u01/install/APPS/fs1/FMW_Home/oracle_common/common/bin/getproperty.sh
<verbatim:stat>
 -rwxr-x--- 1 applmgr oinstall 483  Apr 21 18:24 2015  Apr 21 18:17 2015  getproperty.sh
</verbatim>
<verbatim>
#!/bin/sh

usage() {
  echo "USAGE: $0 <properties_file> <property_name> <env_var>"
  exit 1
}

if [ "$1" = "" ]; then
  echo "Missing required arguement <properties_file>!"
  usage
fi
if [ "$2" = "" ]; then
  echo "Missing required arguement <property_name>!"
  usage
fi
if [ "$3" = "" ]; then
  echo "Missing required arguement <env_var>!"
  usage
fi


PROPERTIES_FILE=$1
PROPERTY_NAME=$2
ENV_VAR=$3

export ${ENV_VAR}=`grep ${PROPERTY_NAME} ${PROPERTIES_FILE} | cut -d '=' -f 2`

</verbatim>
[[#Top][Back to top]]
