#!/bin/sh # Do Not EDIT this script unless you know what you are doing, as this # might stop you from starting your Sun Chili!Soft ASP server. function usage { echo "usage: /opt/casp/chregsvr " echo "" } CMD_ARGS="$@" if [ $# -eq 0 ]; then usage exit 1; fi CHILI_EXE_PATH="/bin:/sbin:/usr/bin:/usr/sbin" if [ -z "$PATH" ]; then PATH="$CHILI_EXE_PATH" else PATH="$PATH:$CHILI_EXE_PATH" fi if [ -z "$CHILI_OS" ]; then CHILI_OS=`uname` fi if [ "$CHILI_OS" = "HP-UX" ]; then JVM_ARGS="no-load-jvm" fi if [ -n "$JVM_ARGS" ]; then . /opt/casp/javasetup.sh "$JVM_ARGS" else . /opt/casp/javasetup.sh fi . /opt/casp/global_odbc.sh . /opt/casp/chsetup.sh if [ "$COM_LAYER" = "chilicom" ]; then regedit "$CMD_ARGS" else regedit -c "$CMD_ARGS" fi exit $?