打印执行的命令:
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