经典赋值脚本

[root@kevin ~]# vim /root/cache_gt_60.sh
#!/bin/bash
for i in $(find  /data/cache/coss/squid*/swap.state -size +60M);
do
   echo " " > $i;
done
 
结合crontab进行定时执行
[root@kevin ~]# crontab -e
0 2 * * 6 /bin/bash -x /root/cache_gt_60.sh > /dev/null 2>&1

 

posted @ 2018-11-05 17:54  夜辰雪扬  阅读(105)  评论(0)    收藏  举报