Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re:**5 (rob_au)**2 Getting net addy on localhost?

by belg4mit (Prior)
on Nov 27, 2001 at 10:22 UTC ( [id://127739]=note: print w/replies, xml ) Need Help??


in reply to Re: Re:**3 (rob_au) Getting net addy on localhost?
in thread Getting net addy on localhost?

Well I have seen /etc/sysoncfig/network-scripts on other platforms. But I'll take your word on that. However this is one reason why I mentioned webmin which is ultra-cross-platform (even if a little ugly).

The problem with calling something like ifconfig is relying upon a standard output scheme across platforms... I doubt Sun does it similar to anybody else (afterall they have their own cron, grep, and ping etc.) UPDATE: I do suppose this |P is a bit GNU-centric ;-).

--
perl -p -e "s/(?:\w);([st])/'\$1/mg"

  • Comment on Re:**5 (rob_au)**2 Getting net addy on localhost?

Replies are listed 'Best First'.
Re: Re: Re:**5 (rob_au)**2 Getting net addy on localhost?
by rob_au (Abbot) on Nov 27, 2001 at 10:29 UTC
    Yep, it seems we are thinking very much alike on this issue - And I do agree, having to rely on the output of *any* external program is less than ideal, but sometimes system permissions and available utilities limit choices.

    The output of /sbin/ifconfig however I think you would find to be much more uniform than the availability of /etc/sysconfig/network-scripts/ifcfg-* files across *NIX platforms - I know for example that my Debian servers don't use these configuration files and so this locale pragma for network configuration cannot even be seen to be consistent across Linux distributions, let alone *NIX platforms.

    Oh, how I yearn for a consistent WIN32 API ... No, hang on a minute, no I don't ... ;-)

     

    Ooohhh, Rob no beer function well without!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://127739]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-26 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found