打印执行的命令:
ps -ef | grep /usr/local/qfqz/qfqz.jar | grep -v grep | awk '{print "kill -9 " $2}'
直接执行杀进程:
ps -ef | grep /usr/local/qfqz/qfqz.jar | grep -v grep | awk '{print "kill -9 " $2}' | sh
ps -ef | grep /usr/local/qfqz/qfqz.jar | grep -v grep | awk '{print "kill -9 " $2}'
ps -ef | grep /usr/local/qfqz/qfqz.jar | grep -v grep | awk '{print "kill -9 " $2}' | sh