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

Bug#2057: Man cron.daily



>The "man" script in cron.daily is as follows:
># 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

A couple more things...  It looks like "run-parts" is refusing to run this
script because it is missing the "#! /bin/sh" on the first line.  Also,
the find commands really should have a "-print" at the end even though
GNU find is smart enough to use this as the default.

                                        Brian
                                 ( bcwhite@bnr.ca )

-------------------------------------------------------------------------------
    In theory, theory and practice are the same.  In practice, they're not.


Reply to: