USRNAME=`who am i|awk '{ print $1}'`
PROCESS=`ps -ef|grep $1|grep -v ksh|grep -v sshd|grep -v telnet|awk '{ print $2}'`
PROCESS=`ps -ef|grep ecds|grep -v ksh|grep -v sshd|grep -v telnet|awk '{ print $2}'`
for pid in $PROCESS
do
echo "Kill the $1 process [ $pid ]"
kill -9 $pid
done
阅读(702) | 评论(0) | 转发(0) |