[LUGOS] Kako lahko dobim info, da sem na mrezi

Gorjanc Gregor Gregor.Gorjanc at bfro.uni-lj.si
Thu Nov 4 14:57:42 CET 2004


Mislim, da je tole bolj prav, ker imaš 0.0.0.0 v obeh vrsticah

route | grep "default" | awk '{print $2}'


-----Original Message-----
From: Metod Kozelj [mailto:metod.kozelj at lugos.si]
Sent: čet 2004-11-04 14:45
To: lugos-list at lugos.si
Subject: Re: [LUGOS] Kako lahko dobim info, da sem na mrezi
 
Howdy!

Gorjanc Gregor wrote:

> Pri obeh bi pa moral malo pohekati, da dobim GW IP številko. Ali je
> možno to kako na lažji način oz. ali obstaja kaj takega
>
> ukaz_gateway
>
> ki bi vrgel ven
>
> GW.IP.NUMBER.1
>

/sbin/route -n | grep "^0.0.0.0" | awk '{ print $2 }'

-- 
Peace!
  Mkx

---- perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
---- echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc




-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2867 bytes
Desc: not available
Url : http://liste2.lugos.si/pipermail/lugos-list/attachments/20041104/002abb21/attachment-0001.bin


More information about the lugos-list mailing list