Bonjour Michelle,
script.sh :
#!/bin/bash -x
up="alive"
#export DISPLAY=:0
for hote in $(cat meshotes)
do
x=$(fping $hote | grep $up)
if [ -n "$x" ]; then
echo "$hote is up"
export DISPLAY=:0
/usr/bin/Xdialog --wrap --title "Information" \
--msgbox "La machine $hote est active" 0 0
fi
done
# end script
fichier 'meshotes':
hostA
hostB
etc...
crontab -e:
*/2 * * * * /home/moi/bin/script.sh
what's up doc?
merci
ps : mail ne marche (encore) pas sur localhost!
--
Pensez � lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Pensez � rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]