赞
踩
/ # cat findPid.sh
#!/bin/sh
for pid in ` ps |grep -v "grep"|grep -v "stop"|grep $1 |awk '{print $1}'` ; do
tmpEth=`ps |grep $pid|grep $1`
if [ -n "$tmpEth" ];then
echo "kill -9 $pid"
kill -9 $pid
fi
rm -rf /tmp/pppoe_$1*
done/ #
---------------------------------------------
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。