Current Path : /usr/local/mgr5/sbin/ |
Current File : //usr/local/mgr5/sbin/cron-ispmgr |
#!/bin/sh if [ "$1" = "-T" ]; then echo -n "(c) ISPsystem.com" exit 0 fi if [ $# -gt 0 ]; then WD=${0%%/sbin/*} MANAGER=${0##*-} cd $WD RES=`$* 2>&1` if [ $? -ne 0 ]; then COMMAND=$1 sbin/mgrctl -m $MANAGER problems.register name=cron "id=$*" level=error "info=$RES" fi fi