* giovedì 13 novembre 2003, alle 15:15, Enzo scrive:
> #!/bin/bash
> while ((1)); do
> sleep 300
> rm -f /tmp/reteviva >/dev/null 2>/dev/null
> for ((numerohost=2; numerohost<=3; numerohost++)); do
> if (ping -c 1 192.168.0.$numerohost >/dev/null 2>/dev/null);
> then echo 192.168.0.$numerohost >>/tmp/reteviva;
> fi
> done
> if [ ! -e /tmp/reteviva ];
> then shutdown -h now;
> fi
> done
Io gli farei fare almeno tre tentativi prima di buttare tutto a "donne
di facili costumi".
--
Maurizio - Tannoiser - Lemmo
Founder Member of ERLUG http://erlug.linux.it
-------------------------------------------------------------------------------
If it's already broken, force it.
|