shell日志删除(超容量&自动)
摘要:背景:避免双十一磁盘被打爆,本想通过crontab执行,但是删除需要密码,所以用作当机器磁盘高于摸个阈值,进行无关性日志强删 !/bin/sh use sh clean.sh wmporder_prehost 38(说明:磁盘超过38%,则进行删除日志) pgm A 'df h' alldf.log
阅读全文
posted @ 2017-12-25 14:58
posted @ 2017-12-25 14:58
posted @ 2017-12-25 12:44