add this as a cron job (crontab -e): remove files that are 8 days or older (8 x 24 = 192 hours), and run the job every day, every week at 12:00AM: 0 0 * * * /usr/sbin/tmpwatch -c --verbose --test --ctime 192 /fs/cipres/cipresweb/results >> /fs/cipres/apps/tomcat/tomcat/logs/clean_tmp_files.log 0 0 * * * /usr/sbin/tmpwatch -c --verbose --test --ctime 192 /fs/cipres/cipresweb/uploads >> /fs/cipres/apps/tomcat/tomcat/logs/clean_tmp_files.log