#!/bin/bash
# 要查找的进程名
process_name="cccout"
# 查找名为 $process_name 的进程并关闭它
process_id=$(ps aux | grep -v grep | grep -m1 "$process_name" |
shell脚本:关闭指定某个进程
于 2024-04-08 18:51:06 首次发布
#!/bin/bash
# 要查找的进程名
process_name="cccout"
# 查找名为 $process_name 的进程并关闭它
process_id=$(ps aux | grep -v grep | grep -m1 "$process_name" |