home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20110502.etc.tar.gz / bradford.20110502.etc.tar / etc / cron.daily / suse-clean_catman < prev    next >
Text File  |  2006-04-22  |  948b  |  43 lines

  1. #!/bin/sh
  2. #
  3. #
  4. # clean_catman. This script was split off cron.daily
  5. # Please add your local changes to cron.daily.local
  6. # since this file will be overwritten, when updating your system.
  7. #
  8. # Copyright (c) 1996-2002 SuSE GmbH Nuernberg, Germany.   
  9. #
  10. # please send bugfixes or comments to feedback@suse.de.
  11. #
  12. # Author: Burchard Steinbild <feedback@suse.de>, 1996
  13. #         Florian La Roche   <feedback@suse.de>, 1996
  14. #
  15.  
  16.  
  17. #
  18. # paranoia settings
  19. #
  20. umask 022
  21.  
  22. PATH=/sbin:/bin:/usr/sbin:/usr/bin
  23. export PATH
  24.  
  25. if [ -f /etc/sysconfig/cron ] ; then
  26.     . /etc/sysconfig/cron
  27. fi
  28.  
  29. #
  30. # Delete too old preformatted man-pages.
  31. #
  32. if test "$DELETE_OLD_CATMAN" = yes ; then
  33.     if test -z "$CATMAN_ATIME" ; then
  34.     # Default is 7 days
  35.     CATMAN_ATIME=7
  36.     fi
  37.     test -e /var/cache/man -a -x /usr/bin/safe-rm && \
  38.     find /var/cache/man -name '*.gz' -type f -atime +$CATMAN_ATIME  -print0 | \
  39.     xargs --no-run-if-empty --max-lines=200 --null -- /usr/bin/safe-rm
  40. fi
  41.  
  42. exit 0
  43.