shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Re: Obter ip sem o ifconfig.


From: Guilherme Gall
Subject: Re: [shell-script] Re: Obter ip sem o ifconfig.
Date: Sun, 29 Mar 2009 01:32:33 -0300

2009/3/27 thigp69 <address@hidden>:
> Boa tarde Deivid.
>
> Pensei em algo do tipo:
>
> lynx --dump www.whatismyip.com.br | grep "Endere" | awk '{ print $3 }'
>
> Que tal?
>
> Terás o ip da tua ADSL sem usar o ifconfig. Dai você consegue jogar a saída 
> em um arquivo de texto qualquer.
>
> Abraço
>

No código fonte das funçõesZZ [1] consta uma URL que fornece apenas o
endereço IP [2], assim nenhum tratamento é necessário.

[1] http://code.google.com/p/funcoeszz/
[2] http://whatismyip.com/automation/n09230945.asp

Saudações,
-- 
Guilherme Magalhães Gall (GMGall)
GPG Public Key ID: 0F498058


reply via email to

[Prev in Thread] Current Thread [Next in Thread]