码迷,mamicode.com
首页 > 其他好文 > 详细

diskalert.sh

时间:2019-09-19 16:37:15      阅读:82      评论:0      收藏:0      [点我收藏+]

标签:The   echo   exit   print   tail   esc   sage   use   tin   

#!/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

标签:The   echo   exit   print   tail   esc   sage   use   tin   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!