摘要: #!/bin/bash # 检测进程是否在运行process=$(ps aux | grep "pytest.py" | grep -v grep) # 如果进程在运行,则终止它if [ -n "$process" ]; then kill $(pgrep -f "pytest.py")fi #!/ 阅读全文
posted @ 2024-04-25 09:31 动灵 阅读(56) 评论(0) 推荐(0) 编辑