Re: Script IP
E> > Buscar mi IP Publica (estoy conectado con ADSL)
> > Envirme la IP a una dir de mail...
> >
>
> k
>
> > se como buscar mi IP por ej lo estoy haciendo con
> >
> > ifconfig ppp0 | grep addr | awk '{print $2}'
> >
>
> my_iface=`/sbin/ifconfig eth0 | grep inet | cut -d: -f2 | cut -d" " -f1`
> echo "direccion ip es: $my_iface" | email bleh@blu.com -s ip
>
Buenas
Otra :
/sbin/ifconfig eth1 | grep inet | awk 'BEGIN{FS= ":"} {print $2}' | awk '{ print $1}'
Saludos
César aka insallah
Powered by Debian Woody.
kernel 2.4.19 Mosix patch applied
{Pentium 200 Pentium 120 Pentium 166 }
Reply to: