shell 执行查找进程,然后查杀进程脚本如下:
ps -ef | grep 'IOE' |grep -v 'grep'| awk '{print $2}' |while read pid; do kill -9 $pid; done
相关命令详解:
ps命令讲解:http://www.cnblogs.com/wangcp-2014/p/5146315.html
grep命令讲解:http://www.cnblogs.com/wangcp-2014/p/5146335.html
awk命令讲解:http://www.cnblogs.com/wangcp-2014/p/5146190.html
read命令讲解:http://www.cnblogs.com/wangcp-2014/p/5146328.html
kill命令讲解:http://www.cnblogs.com/wangcp-2014/p/5146343.html