home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / linux / network / domain-check.cron < prev    next >
Text File  |  2007-07-08  |  771b  |  22 lines

  1. #! /bin/sh
  2.  
  3. # domain-check    Cron script to check domain expirations.
  4. #
  5. #        This is a pitifully primitive cron script to invoke domain-check
  6. #        by Ben Okopnik ( ben@linuxgazette.net ) against lists
  7. #        of domains in /usr/local/share.  A better replacement
  8. #        would notify a list of appropriate persons for each
  9. #        domain, rather than just Rick Moen.
  10. #
  11. #        Written by Rick Moen (rick@linuxmafia.com)
  12. #        $Id: cron.weekly,v 1.01 2007/07/02 21:03:05 rick
  13.  
  14. set -o errexit  #aka "set -e": exit if any line returns non-true value
  15. set -o nounset  #aka "set -u": exit upon finding an uninitialised variable
  16.  
  17. test -e /usr/local/share/domains || exit 0
  18. test -x /usr/local/bin/domain-check || exit 0
  19.  
  20.  
  21. /usr/local/bin/domain-check -e=rick@linuxmafia.com  -x=90 -F=/usr/local/share/domains
  22.