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


wKiom1OVdP7wg72nAAI5q_mf-vY602.jpg

定时任务

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