pskill9
时间:2009-08-25 来源:w1_xiao
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
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
相关阅读 更多 +