#!/bin/shNAME='shell.php'echo $NAMEID=`ps -ef | grep "$NAME" | grep -v "$0" | grep -v "grep" | awk '{print $2}'`echo $IDecho "---------------"for id in $IDdokill -9 $idecho "killed $id"doneecho "---------------"
本文共 407 字,大约阅读时间需要 1 分钟。
#!/bin/shNAME='shell.php'echo $NAMEID=`ps -ef | grep "$NAME" | grep -v "$0" | grep -v "grep" | awk '{print $2}'`echo $IDecho "---------------"for id in $IDdokill -9 $idecho "killed $id"doneecho "---------------"
转载于:https://www.cnblogs.com/microtiger/p/8866993.html