shell脚本执行查找进程,然后查杀进程

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

posted @ 2016-01-20 19:16  飘飘雪  阅读(1856)  评论(0编辑  收藏  举报