首页 > 其他 > 详细

diskalert.sh

时间:2019-09-19 14:43:23      阅读:90      评论:0      收藏:0      [点我收藏+]
#!/bin/bash #### ## Desc diskalert.sh ## Auth justin@itskills.cn ## Date 20190919 ## Usage bash diskalert.sh #### if [ `whoami` != cad ] then echo "pls run as cad user" exit 0 fi # while version while : do used=$(df -hT / | tail -n 1 | awk ‘{print $6}‘ | awk -F% ‘{print $1}‘) if [ $used -lt 80 ] then echo "$HOST this disk will be full" fi sleep 3600 done

diskalert.sh

原文:https://blog.51cto.com/justinit/2439251

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!