PHP
·
发表于 5年以前
·
阅读量:8410
#!/bin/bash
PROCESSNAME=Helloworld
PROCESS=`ps -ef|grep ${PROCESSNAME}|grep -v grep|grep -v PPID|awk '{ print $2}'`
for i in $PROCESS
do
echo "Kill the lxoperation process [ $i ]"
kill -9 $i
done