最近开发要求对tomcat的日志做按小时分割处理,简单写了个脚本,分享一下


tomcat 按小时分割日志脚本_tomcat 小时 日志 shell

定时任务

2 * * * * /root/shell/log.sh >/dev/null 2>&1