ps -ef|grep query_test.sh|grep -v grep #查看进程是否存在

 ps -ef|grep query_test.sh|grep -v grep |awk '{print $2}'|xargs  kill -9

 

 posted on 2023-01-06 14:21  boye169  阅读(198)  评论(0编辑  收藏  举报