[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: deleting content of /tmp



On Sat, 24 Mar 2007 20:07:38 -0400
Roberto C. Sánchez <roberto@connexer.com> wrote:

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

Well, I guess that at that point I'll adjust the time period.  Won't
I?

-- 
Raquel
============================================================
No one can terrorize a whole nation, unless we are all accomplices.
  --Edward R. Murrow



Reply to: