Your IP : 13.59.212.110


Current Path : /usr/local/mgr5/sbin/
Upload File :
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