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

Re: remove mail periodically?



Jiri Baum <jiri@baum.com.au> writes:


> If so, then you should be able to simply delete them with an appropriate
> "find" command, perhaps from a cron job (add a file to /etc/cron.daily).
> 
> Try:
>   find . -mtime 7 -exec ls -l {} \;

find would return files wich are exactly 7 days old.
he will need to launch this each day.
I ahve seen a tool on readhat named tmpwatch which removed files older than
an amount of hours.

-- 
o-o

mverdier@chez.com (Michel Verdier)
http://www.chez.com/mverdier


Reply to: