#!/bin/bash
# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
# r58.hsc src/hsc/scripts/runHMCCmd.sh 1.1 
#  
# IBM CONFIDENTIAL 
#  
# Licensed Materials - Property of IBM 
#  
# Licensed Internal Source Code Materials 
#  
# COPYRIGHT International Business Machines Corp. 2007 
# All Rights Reserved 
#  
# The source code for this program is not published or otherwise 
# divested of its trade secrets, irrespective of what has been 
# deposited with the U.S. Copyright Office. 
#  
# IBM_PROLOG_END_TAG 
export MINI_LANG=`echo $LANG | cut -b1-2`
export PATH=/opt/IBMJava/jre/bin:/usr/bin/:/bin:/opt/hsc/bin/:/sbin:/opt/ccfw/bin/framework:$PATH
export LD_LIBRARY_PATH=/opt/hsc/lib:$LD_LIBRARY_PATH
while getopts 'c:t:l:' optname; do
   case "$optname" in
   c) CMDCLASS="$OPTARG";;
   t) TTYNAME="$OPTARG";;
   l) ARGVL="$OPTARG";;
   *);;
   esac
done
  
java ${JPDA_DEBUG} -Djava.library.path=/opt/IBMJava/jre/bin:/opt/IBMJava2-142/jre/bin/classic:/opt/IBMJava2-142/jre/bin:/opt/hsc/lib:/usr/lib:/usr/websm/lib -Djavax.net.ssl.keyStore=/usr/websm/codebase/SM.pubkr -Djavax.net.ssl.keyStorePassword=defp -DCONSOLE_PATH=/opt/ccfw/ -Dorg.snia.wbem.cimom.properties=/opt/hsc/data/cim.properties -DHMCRealUser.name=$HMC_ORIGINAL_USER -DHMCtty.name=$TTYNAME -cp $DEBUG_HMC_CMD:/usr/websm/codebase/pluginjars/aca.jar:/opt/hsc/jars/i18n/hsc_${MINI_LANG}.jar:/opt/hsc/jars/i18n/hsc_pt_BR.jar:/opt/hsc/jars/i18n/hsc_zh_TW.jar:/opt/hsc/jars/i18n/hsc_zh_CN.jar:/usr/websm/codebase/pluginjars/hsc_bundles.jar:/usr/websm/codebase/pluginjars/hsc.jar:/usr/websm/codebase/wsm.jar:/usr/websm/codebase/pluginjars/sniacimom.jar:/usr/websm/codebase/pluginjars/xerces.jar:/usr/websm/codebase/pluginjars/ccfw.jar:/usr/websm/codebase/pluginjars/ccfw_sslite.jar:/usr/websm/codebase/pluginjars/auifw.jar:/usr/sbin/rsct/codebase/rmcapi.jar:/usr/websm/codebase/pluginjars/bundles.jar:/usr/websm/codebase/auiml.jar:/usr/websm/codebase/jcb.jar:/usr/websm/codebase/log.jar $CMDCLASS $ARGVL
exit $?
