Can anybody help me to understand the following tmpwatch script...
Code:
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 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
While googling for tmpwatch I found that by default this script will be executed daily and will remove tmp files older than 10 days ... But i can see two <hour> options 240 ( 10 days) & 720 (30 days) in this script... So where can I edit/change so that default ( 10 days ) can be changed to something else ??
Also what does "-x" option do ?