#!/bin/sh curuser=`whoami` if [ $curuser = "root1" ];then echo "root Operation is not allowed!!" exit -1 fi ./json_logload_svr --id 10.999.93.1 --conf-file ./jsonlogload_svr.xml --pid-file=./logload_json_10_999_svr.pid stop