脚本如下:

for pp in `ps -ef | grep LOCAL=NO | grep -v grep | awk '{print $2}' | xargs`

 do
 kill -9 $pp
 done