杀死含有关键字的进程

#!/bin/sh
PRO="epn rtFtpput send_notifyOvf HkpCustom ZTE_HTTP rtsp_server_main discoveryOvf httpd miniupnpd"
#echo $PRO
for p in $PRO
do
        echo kill $p
        ps x|grep $p|awk '{print $1}'|xargs kill -9
done


你可能感兴趣的:(server,kill)