# 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 &