On Tue, Jul 20, 2004 at 04:14:34PM -0400, Tony Nelson wrote:
> Does anyone know where I can find the latest copy of tmpwatch.c .. I hadn't
> noticed (as I /dev/null all my cronjobs) but slackware doesn't have tmpwatch,
> and a few of my temp directories were so full, the only solution was to rm -rf
> and recreate them.
I don't use it myself, I just use find.

Delete images older than 1 day.

find $IMAGEPATH -type f  -mtime +1 -regex '.*\.\(png\|dot\|map\)$' -exec rm {} \;

Delete logs older than a week.

find $LOGPATH -type f  -mtime +7 -exec rm {} \;

-- 
Craig Small      GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE         Debian developer
csmall at : enc.com.au                      ieee.org           debian.org


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
jffnms-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to