On Tue, May 01, 2001 at 04:28:52PM +0200, MaX in the FaX wrote: > vorrei fare uno script che si "accorga" se un computer è caduto e nel caso > intraprenda una azione. Se lo vuoi fare in sh #!/usr/bin/sh HOST="host" MAIL="root" ## Loop infinito while [ 1 -eq 1 ] do ## Ping ping -c 1 $HOST 2>&1>/dev/null ## Controllo il risultato if [ $? -eq 1 ] then ## Ping fallito echo "ALLARME !!!" | mail -s "ALLARME" $MAIL exit 0 fi sleep 10 done Ciao -- Daniele --- http://www.grinta.net --- -- Per iscriversi (o disiscriversi), basta spedire un messaggio con SOGGETTO "subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxxxxxx