On Sat, Mar 24, 2007 at 05:03:44PM -0700, Raquel wrote:
> 
> I use the following in my crontab.  It gets rid of anything over a
> week old.
> 
> # Remove old cache files
> 10 00 * * * find /tmp -type f -mtime +6 | xargs rm
> 
However, realize that some programs create a file /tmp and then promptly
unlink it, thus causing the file to take up space even though it does
not have a directory entry.  This can be a problem if you have a
long-running (as in longer than the interval over which your reaper
runs) program.

Regards,

-Roberto

-- 
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com

Attachment: signature.asc
Description: Digital signature

Reply via email to