also sprach Will Lowe <[EMAIL PROTECTED]> [2002.01.13.2037 +0100]:
> > Is there any deb available for it?
> 
> Not currently.  If there's a lot of demand I'll package it, but it
> seemed silly to bloat the Packages file further by making a .deb
> containing 139 lines of perl.

this runs from my cron btw, incidentally called aptwatcher too.

cat aptwatcher 1>&2 | wc -l 2>&1
apt-get update &> /dev/null

tmpfile=`mktemp /tmp/aptwatcher.XXXXXX`
trap "rm -f $tmpfile" exit

echo n | apt-get -u dist-upgrade | \
  grep "^\(The following\|  \|[0-9]* packages upgraded\)" > $tmpfile

[ ! -s $tmpfile ] && exit 0

grep -q "^0 packages upgraded" $tmpfile && exit 0

cat << EOF | /usr/sbin/sendmail root
Subject: `hostname`: apt upgrades available

hi,
the following packages should be updated on $HOST:

`cat $tmpfile`
EOF
       20      <lines>

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; [EMAIL PROTECTED]
  
no keyboard present.
press f1 to continue.
zen engineering.

Attachment: pgpKnXt1uWmkC.pgp
Description: PGP signature

Reply via email to