[eside-ghost] script de detección de cambio de IP y aviso por mail

Alvaro Uría fermat en rigel.deusto.es
Mar Ago 30 10:38:09 CEST 2005


Holas!

On Tue, 30 Aug 2005 10:07:17 +0200
"Fernando de Urien" <zefe en rigel.deusto.es> escribió:

Te paso un PATCH :-DD

4,5c4
< IPNEW=`wget www.whatismyip.com > /dev/null && cat index.html |grep
"<TITLE>"| cut -d " " -f5`
< rm index.html
---
> IPNEW=`wget -qO - www.whatismyip.com |grep "<TITLE>"|cut -d" " -f5`
10c9
< if [ "$IPNEW"  = "$IPOLD" ]
---
> if [ "$IPNEW"  == "$IPOLD" ]


Saludos,
   Alvaro Uría


Más información sobre la lista de distribución eside-ghost