#! /bin/bash
prefix=/usr
exec_prefix=${prefix}
bindir=${exec_prefix}/bin
cmd=$1
shift
case $cmd in 
disable)
   $bindir/dmt-mon_disable "$@"
;;
enable)
   $bindir/dmt-mon_enable "$@"
;;
info)
   $bindir/dmt-mon_info "$@"
;;
restart)
   $bindir/dmt-mon_restart "$@"
;;
status)
   $bindir/dmt-mon_status "$@"
;;
help | --help)
   echo "The dmt script allows the user to view and control dmt processes"
   echo "running under the dmt process manager (procmgt)"
   echo "Commands accepted by this utility are:"
   echo ""
   echo "disable, enable, help, info, restart and status"
   echo ""
   echo "type 'dmt <command> --help' for help with an individual command"
;;
*)
  echo "dmt: unidentified command '$cmd'"
esac

