I wrote:

> To this day, every Sunday I get e-mail via a cron job that runs
> domain-check against a set of about three dozen domains (mine,
> friends', and those of institutions I care about) to tell me which of
> them are within 90 days of expiration (and if any are past
> expiration).


FYI, here's an example report sent using said cron job, that leverages
Ben Okopnik's 'domain-check' Perl script:


---<begin>---

Date: Sun, 24 Dec 2017 07:12:02 -0800
From [email protected] Sun Dec 24 07: 2:02 2017
From: root <[email protected]>
To: [email protected]
Subject: domain-check: Domain expiration warning (90 day cutoff)

According to 'whois', these domains will expire soon:

pentaclemoon.com (in 16 days)
electriclichen.com (in 20 days)
berkeleylug.com (in 26 days)
animelosangeles.com (in 26 days)
chicon.org (in 30 days)
grrattitude.com (in 33 days)
computerhistory.org (in 39 days)
maruch.org (in 43 days)
spinster.org (in 44 days)
lugod.org (in 44 days)
wsfa.org (in 45 days)
badens.org (in 47 days)
linuxdojo.net (in 60 days)
chair-in-the-sky.com (in 65 days)
cain.org (in 65 days)
svlug.net (in 71 days)
nblug.org (in 72 days)
landley.net (in 77 days)
zwilnik.net (in 82 days)
nesfa.org (in 83 days)
mib.org (in 86 days)
whensday.info (in 88 days)
likkitownsend.com (in 90 days)
desamojones.com (in 90 days)

---<end>---


That mail was generated by my local /etc/cron.weekly/domain-check
cron job, which is as follows:


---<begin>---

#! /bin/sh

# domain-check  Cron script to check domain expirations.
#
#               This is a pitifully primitive cron script to invoke domain-check
#               by Ben Okopnik ( [email protected] ) against lists
#               of domains in /usr/local/share.  A better replacement
#               would notify a list of appropriate persons for each
#               domain, rather than just Rick Moen.
#
#               Written by Rick Moen ([email protected])
#               $Id: cron.weekly,v 1.01 2007/07/02 21:03:05 rick

set -o errexit  #aka "set -e": exit if any line returns non-true value
set -o nounset  #aka "set -u": exit upon finding an uninitialised variable

test -e /usr/local/share/domains || exit 0
test -x /usr/local/bin/domain-check || exit 0


/usr/local/bin/domain-check -w [email protected]  -x=90 
-F=/usr/local/share/domains

---<end>---



My /usr/local/share/domains file is simply an ASCII list of domains
I wish to be periodically checked, listed one per line.

_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main

Reply via email to