Files
cpukeep/stop_kg_cpu_control.sh
2017-08-16 14:16:37 +08:00

15 lines
461 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#! /bin/bash
# -*- coding=utf-8 -*-
# Author:zhouze03
# Date: 2017-08-16
# kill 主线程
ps -ef | grep ./cpu_scheduler.sh | grep -v grep | awk '{print $2}' | xargs kill -9
# 为了安全起见kill 贪婪进程正常情况kill 主线程,子线程即退出)
ps -ef | grep ./dead_circle.sh | grep -v grep | awk '{print $2}' | xargs kill -9
# 测试脚本相关
# ps -ef | grep ./test_dead_circle.sh | grep -v grep | awk '{print $2}' | xargs kill -9