Re: Debian-installer: dpkg & shadow updates needed
On Sat, Feb 11, 2006 at 02:19:08PM +1030, Clytie Siddall wrote:
> I really appreciate the reminders on this list, when I haven't been
> able to monitor the D-I status pages every day.
i have small script for monitoring changes (not perfect, only with
Slovak variables names and some hardcoded values) - script send mail
with differences - so only one mail, if no changes appears:
#!/bin/sh
#
# websec-txt
DATUM=`date +%Y.%m.%d__%H.%M.%S`
CESTA=$HOME/.websec-txt
ZDROJ=$CESTA/zdroje.url
test -d $CESTA || { echo "Inicializujem .websec-txt ..."; install --directory --mode=0700 $CESTA; mkdir $CESTA/subory; exit 0; }
chmod 700 $CESTA
test -f $ZDROJ || { echo "Nemate zdroje.url ..."; exit 0; }
for i in `cat $ZDROJ | grep "^http://"`; do
WEBZDROJ=$i
LOKALNY_SUBOR=`echo $WEBZDROJ | sed 's/\//_/g' | tr "~:" "__"`
test -f $CESTA/subory/$LOKALNY_SUBOR.stary || touch $CESTA/subory/$LOKALNY_SUBOR.stary
mv $CESTA/subory/$LOKALNY_SUBOR $CESTA/subory/$LOKALNY_SUBOR.stary
wget --quiet $WEBZDROJ -O - | grep -v "Files fetched and report generated" > $CESTA/subory/$LOKALNY_SUBOR
diff -u $CESTA/subory/$LOKALNY_SUBOR.stary $CESTA/subory/$LOKALNY_SUBOR > $CESTA/subory/$LOKALNY_SUBOR.diff
if test $? -ne 0;
then
cat $CESTA/subory/$LOKALNY_SUBOR.diff | mutt -s "[WebSec-txt] $WEBZDROJ - $DATUM" Peter.Mann@tuke.sk
else
echo "$WEBZDROJ - ziadna zmena"
fi
done
exit 0
----------------------------
cat $CESTA/zdroje.url:
http://people.debian.org/~seppy/d-i/level1/sk.txt
http://people.debian.org/~seppy/d-i/level2/sk.txt
http://people.debian.org/~seppy/d-i/level3/sk.txt
http://people.debian.org/~seppy/d-i/level4/sk.txt
http://people.debian.org/~seppy/d-i/level5/sk.txt
maybe my script helps to make better universal script ...
(with better configuration and replacing some hardcoded
values with defined variables)
i can rewrite it with english names ...
--
5o Peter.Mann at tuke.sk
Reply to: