#update 20100721 BY Serwei Xu(serweixu@pplive.com)
#Author: Serwei Xu(xw2014@sina.com)
sysdate=`date +'%F'` server_version=`uname -i`
check_dependence() { if["`rpm -qa |grep $1|wc -l`"-lt 1 ];then echo "The system have no $1,please check it! " exit 0 else echo "check dependence for $1" fi }
check_evn() { #check who running the script echo echo "#######################check who running the script############################" echo if["`whoami`"!="root"];then echo echo "###################the shell script will running by root#####################" echo exit 0 fi