#!/bin/ksh
#**********************************************************************#
#*                                                                    *#
#* Copyright (c) 2004 by Sun Microsystems, Inc.                       *#
#* All rights reserved.                                               *#
#*                                                                    *#
#**********************************************************************#
# : $Workfile:    $ $Revision:    $

#
# MTP kixalert command
#



#
# This script is dependent upon JAR files shipped in $UNIKIX/lib. If 
# $UNIKIX is not set it will be determined from the location of this script
#
if [ -z "$UNIKIX" ]
then
    D=$(dirname $0)
    B=$(basename $0)
    abspath="`cd \"$D\" 2>/dev/null && pwd || echo \"$D\"`/$B"
    UNIKIX=`dirname $(dirname $abspath)`
fi

#
# Ensure that anything using single quotes suppplied by the user 
# is passed through correctly
#
while [ $# -gt 0 ]
do
ourarg=$(echo $1 | sed "s/\'/\'\\\'\'/g")
ourargs=${ourargs}' '\'$ourarg\'
shift
done

#
# Invoke the necessary java command
#
eval java -Dmtp.kixsys=$KIXSYS -classpath $UNIKIX/lib/mtpadmin.jar com.sun.emp.mtp.admin.cmd.KixAlertCommand $ourargs



