根据进程名称查找进程id,根据进程名称杀掉进程

ps -ef|grep -w 'AnalyJob'|grep -v grep|awk '{print $2}'

编程技巧