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

Re: Variaveis



On Wed, Jul 03, 2002 at 01:19:34PM -0300, Leonardo Arend Leão wrote:
>     Alguem ai saberia como faco para obter o ip de uma de minha
> interfaces numa variavel? de forma q eu pudesse acessa-la via
> script?
> echo $meu_ip
> 200.X.X.X
Você está falando em bash? Dê uma checada em hostname -i. Na minha máquina 
o comando seria MEUIP=$(hostname -i | cut -d " " -f 3)

-- 
Leonardo Boiko
 "However, is it possible that the primitives did not animate the
 world, but that perhaps, we have killed it?"
 -- Albert Low


-- 
To UNSUBSCRIBE, email to debian-user-portuguese-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: