#!/bin/sh

subject="logs ARPanoid `date` "
dest="root@crans.ens-cachan.fr"

cat <<Fini | cat - /var/log/arpanoid | mail -s "$subject" $dest

Résultats de la chasse "ARPanoid" de la journée : 
-------------------------------------------------

Fini

mv -f /var/log/arpanoid /var/log/arpanoid.bak
touch /var/log/arpanoid
chmod 640 /var/log/arpanoid
chown root:admin /var/log/arpanoid
/etc/CRANS/code/arpanoid > /var/log/arpanoid 2>/dev/null
