# rpm -qa | grep tmpwatch
tmpwatch-2.9.7-1.1.el5.5
# cat /etc/cron.daily/tmpwatch
/usr/sbin/tmpwatch -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 12 /tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "" ]; then
/usr/sbin/tmpwatch -f 12
fi
done
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
-x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \
-X '/tmp/hsperfdata_*' 240 /tmp
/usr/sbin/tmpwatch "$flags" 720 /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "$d" ]; then
/usr/sbin/tmpwatch "$flags" -f 720 "$d"
fi
done
/dev/sda3 2,0G 39M 1,8G 3% /tmp
/usr/sbin/tmpwatch -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 12 /tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "" ]; then
/usr/sbin/tmpwatch -f 12
fi
done
/usr/sbin/tmpwatch -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 12 /tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
if [ -d "" ]; then
/usr/sbin/tmpwatch -f 12
fi
done
Yes, it will clean the tmp every 12hours, so i think should be fine for you.
Regards
No, you've got only 14% of free space in /tmp
0 */2 * * * root /usr/sbin/tmpwatch -maf 8 /tmp
# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
1 * * * * root run-parts /etc/cron.hourly
42 0 * * * root run-parts /etc/cron.daily
49 0 * * 0 root run-parts /etc/cron.weekly
10 2 3 * * root run-parts /etc/cron.monthly
how i should check it?