hi
I'm using a VPS with CentOS release 5.10 (Final)
When I SSH with vi /etc/cron.daily/tmpwatch it shows :
===
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
~
~
===
What I want is /tmp folder to be auto cleared every 24hrs automatically. Would really appreciate if anyone can tell me the exact changes I need to make to this above script
Thanks
John
I'm using a VPS with CentOS release 5.10 (Final)
When I SSH with vi /etc/cron.daily/tmpwatch it shows :
===
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
~
~
===
What I want is /tmp folder to be auto cleared every 24hrs automatically. Would really appreciate if anyone can tell me the exact changes I need to make to this above script
Thanks
John