#!/bin/bash
PID=`lsof -w |grep delete | awk '{print $2}'`
echo "查出僵尸相关的进程PID: $PID"
for item in $PID
do
kill -s 9 $item
echo "已经kill进程: $item"
done
内容无法查看或下载、交流学习或免费获取更多资料加微信mingzhang567备注来意
#!/bin/bash
PID=`lsof -w |grep delete | awk '{print $2}'`
echo "查出僵尸相关的进程PID: $PID"
for item in $PID
do
kill -s 9 $item
echo "已经kill进程: $item"
done