#!/bin/sh
logPath=/wwwlogs
cd ${logPath}
echo ${logPath}
currentDate=`date -d "-1 day" "+%Y%m%d"`
echo ${currentDate}
split -b 65535000 -d -a 4 ${logPath}/go.log ${logPath}/go.log_${currentDate}
cat /dev/null > ${logPath}/go.log
ps:nohup生成的日志文件不能直接mv 这样文件句柄会变化