#!/bin/sh
################################################################
#
#   Copyright (C) 2005 Intel Corporation.
#
#   All Rights Reserved.  All names, products,
#   and services mentioned herein are the trademarks
#   or registered trademarks of their respective organizations
#   and are the sole property of their respective owners.
#
################################################################

#`MTW -  updates to support command-line processing.  A new command-line
#        option:  -j has been added to support starting of the Java
#        veraion of pstndiag.
#
#        if the script is run with no command-line options, the 
#        QSCRIPT version of pstndiag is started

if [[ $1 = -j ]]; then
   echo "starting pstndiag (JAVA version)"
   run_pstndiag.sh
else 
   echo "starting pstndiag (QSCRIPT version)"
   qscript $INTEL_DIALOGIC_QSCRIPT/tools/pstndiag/pstndiag.qs $*
fi
