log 파일 주기적으로 삭제

[ log 파일 주기적으로 삭제 ]

# 일정기간 지난 Log 파일 주기적으로 삭제

#!/bin/bash

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/usr/X11R6/bin

#find /usr/local/apache2.2/logs/web -maxdepth 1 -mtime +3 -name \* -exec rm {} \;
find /home/dasan/tomcat7_1/logs -maxdepth 1 -mtime +90 -name \* -exec rm {} \;
find /home/dasan/tomcat7_2/logs -maxdepth 1 -mtime +90 -name \* -exec rm {} \;

댓글

이 블로그의 인기 게시물

Python requests 모듈 간단 정리