#!/bin/sh
#
#  Script:			SMcli-1
#  Instance:		4
#  %version:		11 %
#  Description:		
#  %created_by:		symsm %
#  %date_created:	Fri Sep 20 13:46:09 2002 %
#  Revised on Sept 6 2001  by  jhouston  to remove green thread flag

# SMcli startup script

BASEDIR=/opt/IBM_FAStT
JAVA_EXEC=$BASEDIR/jre/bin/java
CLIENT_DIR=$BASEDIR/client
FFEAT=FULL_SA

number=0
numargs=$#
while [ "$number" -lt "$numargs" ]
do
        if [ "`echo $1 | grep \'`" != "" ]
        then
                args=`echo $args`' '\"$1\"
        else
                args=`echo $args`' '\'$1\'
        fi
	number=`expr $number + 1`
        shift
done

echo "$JAVA_EXEC -mx128M -Ddevmgr.datadir=/var/opt/SM -Ddevmgr.dmv.featureOption=$FFEAT -classpath $CLIENT_DIR:$CLIENT_DIR/jhall.jar:$CLIENT_DIR/CStor.jar:$CLIENT_DIR/SMclient.jar devmgr.cli.CommandLineInterface $args 2> /dev/null" >/tmp/SMcli.$$

sh /tmp/SMcli.$$
status=$?
rm /tmp/SMcli.$$

exit $status


