#!/bin/bash
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/IBMJava/jre/bin/classic:/opt/IBMJava/jre/bin:/opt/hsc/lib:/usr/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/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 $CMDCLASS $ARGVL
exit $?
