[LUGOS-PROG] IP iz /proc

Andraz Sraka a at aufbix.org
Thu Nov 29 17:40:27 CET 2007


re

On Thu, 2007-11-29 at 16:59 +0100, Miha Tomšič wrote:
> A zna kdo izmed vas izluščiti informacijo o IP številki za eth0 in
> eth1 iz /proc šavja?

Tezka .. 

> Seveda je najlažje klicati system() in ga vpršati, kaj vrne ifconfig,
> ampak ta klic je jako potraten in pretrese cel sistem.

nja .. 'ip addr sh' :)

> Ali obstaja kakšen vodnik po deželi /proc, ne da bi moral za to
> prebrati cel source od jedra?

Obstaja. Vecji problem, ki ga jaz vidim je to, da naceloma tega podatka
ni v /proc fs-ju :)

lp,
 Andraz

-- 
BOFH excuse #130:

new management
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://liste2.lugos.si/pipermail/lugos-prog/attachments/20071129/19683fdc/attachment.pgp 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3355 bytes
Desc: not available
Url : http://liste2.lugos.si/pipermail/lugos-prog/attachments/20071129/19683fdc/attachment.bin 


More information about the lugos-prog mailing list