#kill tomcat pid
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