in reply to Re:**3 (rob_au) Getting net addy on localhost?
in thread Getting net addy on localhost?
I don't however agree with the concept of parsing /etc/sysconfig/network-scripts/ifcfg-* - For starters, this is very much a Red Hat (and variant) locale for network configurations, *not* a general *NIX location pragma. Further to this, the idea of relying on text files generated outside of the real scope of the program makes me very nervous - I have rambled on this concept previously and as such won't repeat myself here.
Suffice to say, if you are going to rely on *any* external source, consider it tainted and evil (-T, -T and -T) until proven otherwise - And even then treat it with care. If I had to rely on an external program source, then I would be looking directly at /sbin/ifconfig (the path of which should be hard-coded into the program, not drawn from an alternate configuration file) and parsing the output of that.
Just my random thoughts on the matter
Ooohhh, Rob no beer function well without!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:**5 (rob_au)**2 Getting net addy on localhost?
by belg4mit (Prior) on Nov 27, 2001 at 10:22 UTC | |
by rob_au (Abbot) on Nov 27, 2001 at 10:29 UTC |