[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

/etc/cron.daily/man typo????



/etc/cron.daily/man which comes with the man package reads:

--
# expunge old catman pages which have not been read in a week
find /var/catman -type f -name '*[1-9nlop].gz' -atime +168 | xargs rm -f

# expunge old catman pages which are older than one month
find /var/catman -type f -name '*[1-9nlop].gz' -mtime +720 | xargs rm -f

exit 0
--

The man page for find says that -atime will find files whose last access 
was n*24 hours ago.  So, if I am not very confused (quite probable), the 
"-atime +168" above will only delete files which have not been accessed 
for 168 days, not one week as the comment says it is intended to do.  

Likewise, the "-mtime +720" will delete files older than 720 days, not 
one month as its comment states.

Gerry
gerry@blue.intele.net



Reply to: