tmpwatch
ok, i had a problem with my /tmp filling up, i was originally just gonna drop a script in cron.monthly that rm -rf /tmp/* but someone told me tmpwatch is a better idea.well in cron.daily i have tmpwatch which is
/usr/sbin/tmpwatch 240 /tmp
/usr/sbin/tmpwatch 720 /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "$d" ]; then
/usr/sbin/tmpwatch -f 720 $d
fi
done
well it doesent seem to be clearing out /tmp, because its still filling up with old files. So whats the trick to get tmpwatch to work correctly?