摘要:
停止: #!/bin/bashpid=`ps -ef|grep /opt/lampp|grep -v grep|awk '{print $2}'|wc -l`b=0if [ $pid -gt $b ]thenps -ef|grep /opt/lampp|grep -v grep|awk '{prin 阅读全文
posted @ 2016-09-21 11:45
D.零下的小书屋
阅读(5868)
评论(0)
推荐(0)
摘要:
这个命令和管道符一起使用 非常好用 ,意思是:把前面的命令产生的结果 交给xargs后面这个命令来处理 ps -ef|grep monitor_psr.sh|grep iboss2|grep ismp|grep -v grep|awk '{print $2}'|xargs kill -9 ps -e 阅读全文
posted @ 2016-09-21 11:18
D.零下的小书屋
阅读(130)
评论(0)
推荐(0)