根據進程名Kill指定進程

#!/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

所屬標簽

無標簽

25选5玩法中奖