# vi /data/webuser/job.sh
--------------------------------------------------
#i/bin/sh
# Remove file Apache Log
filelist=`find /usr/local/apache2/logs/ -mtime +5`
for f in ${filelist};
do
 rm ${f}
done
filelist=`find /usr/local/apache2_81/logs/ -mtime +5`
for f in ${filelist};
do
 rm ${f}
done
# Remove file Tomcat Log
filelist=`find /usr/local/tomcat/logs/ -mtime +5`
for f in ${filelist};
do
 rm ${f}
done
filelist=`find /usr/local/tomcat1/logs/ -mtime +5`
for f in ${filelist};
do
 rm ${f}
done
filelist=`find /usr/local/tomcat2/logs/ -mtime +5`
for f in ${filelist};
do
 rm ${f}
done
filelist=`find /usr/local/tomcat3/logs/ -mtime +5`
for f in ${filelist};
do
 rm ${f}
done
# crontab -e 
------------------------------------------------------
# Remove log file(매일 새벽 5시)
0 5 * * * /data/webuser/job.sh &
        로그파일 일괄 삭제 스크립트 & crontab
        |
        
    
    
    
            2011.02.25 18:18:28
            |
            2011.02.25 18:18:28
            |
            643
            |
            Aiden
        
    Total of Attached file
        
        0.00 Bytes of 0 files
    
                2016.10.08
            
        
                2016.10.08
            
        
                2016.10.08
            
        
                2016.07.06
            
        
                2014.05.16
            
        
                2011.02.25
            
        
                2010.11.03
            
        
                2010.09.29
            
        
                2010.09.02
            
        
                2010.06.24
            
        
                2010.06.24
            
        