锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
USER=`whoami`
pidlist=`ps -ef|grep tomcat|grep $USER|grep -v "grep"|awk '{print $2}'`
#ps -u $USER|grep "java"|grep -v "grep"
if [ "$pidlist" = "" ]
then
聽 echo "no tomcat pid alive"
else
聽 for pid in ${pidlist}
聽{
聽聽 kill -9 $pid
聽echo "KILL $pid:"
聽echo "service stop success"
聽聽
聽 }
fi