#!/bin/bash

# 指定要查询和杀死的进程名称
process_name="bin.mt.plus"

# 查询进程ID
pid=$(pgrep $process_name)

if [ -z "$pid" ]; then
  echo "No process found with name $process_name"
else
  # 杀死进程
  echo "Killing process with PID $pid"
  kill $pid
fi
