#!/bin/bash
filedate=`date -d "1 month ago" +%Y%b%d`
file=${filedate}-${filedate}
#echo $file
path="/home/www/log/squid/daily"
#echo " rm -rf ${path}/${file}"
rm -rf ${path}/${file}
#echo ${path}/${file}
#Get yesterday date
YESTERDAY=$(date --date "1 day ago" +%d/%m/%Y)
/usr/bin/sarg -o /home/www/squid/daily -d $YESTERDAY > /dev/null 2>&1
exit 0
阅读(3099) | 评论(0) | 转发(0) |