PRID=`ps -ef|grep "program"|grep -v grep|sort -k2|awk '{print $2}'`
if [ -z "$PRID" ]
then
   exit 0
else
   ps -ef|awk '{if($3=='"$PRID"'){system("kill -9 "$2)} }'
fi

 

相关文章:

  • 2021-11-07
  • 2022-12-23
  • 2021-10-16
  • 2021-12-19
  • 2022-03-09
  • 2022-12-23
  • 2020-07-27
猜你喜欢
  • 2021-11-07
  • 2021-11-07
  • 2022-12-23
  • 2022-01-06
  • 2022-02-07
  • 2021-12-26
  • 2021-08-17
相关资源
相似解决方案