文件名称:自动杀掉占用较多CPU资源的Shell脚本
文件大小:29KB
文件格式:PDF
更新时间:2024-01-31 08:07:23
linux脚本 shell 脚本
代码如下:#!/bin/bash # March-13-2006# CPUuse trigger script by Noel## bash code to watch a running program’s CPU usage.# if it’s above a set value, it will auto send an email.# You will need to set a Cron job to run this script every xx minutes## Set some needed things:#processToWatch=”convert” # in my