in reply to etc file that contains the device (eth0 eth1...) information

If you are on linux, or unix-style os, type 'ifconfig' , and read "man ifconfig"

For example, if you are root or have sudo priviledges for ifconfig:

open DH, "/sbin/ifconfig 'eth0' | " or die "Could not run ifconfig"; my $data = join "", <DH>; close DH; close DH; print "$data
You can also set properties with ifconfig, as shown in the man page, or google searches.But you will almost certainly need to be root, with all the permissions in the deep network layers.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

Replies are listed 'Best First'.
Re^2: etc file that contains the device (eth0 eth1...) information
by Hir@ (Initiate) on Feb 14, 2010 at 15:05 UTC
    i hav almost done my task... :) anyways thnx 4 giving the information