[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
- Re: [shell-script] Obter ip sem o ifconfig., (continued)
- Iniciante, Patrícia Costerus, 2009/03/26
- Re: Obter ip sem o ifconfig., thigp69, 2009/03/27
- Re: [shell-script] Re: Obter ip sem o ifconfig.,
Guilherme Gall <=