lists user wrote:
> Hello,
>
> I want to do the things below:
>
> a) get all binded IPs on a redhat linux os.there are maybe more than
> one IP,like eth0,eth1,eth0:1 etc.
>
> b) for each IP,I need to know if it's a private network address (like
> 192.168.0.1) or a public network address.
>
> for the first problem I can read something from
> /etc/sysconfig/network-script/ifcfg-eth*, or code with @ips =
> `/sbin/ifconfig` and use regex to capture the IPs.But I don't think
> these are the best ways.
>
> I don't like to use any CPAN module,b/c I'm not admin user,don't have
> privileges to install those modules.
>   
To save you from re-inventing wheels...
You don't need admin access to install most modules, just put them
somewhere where you can script can access them and "use lib".

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to