Here is a quick script I chruned out. It could be neatened up a bit, naturally, but should get you where you want to go.


Code:
#!/usr/bin/perl
$ifconfigin= `/sbin/ifconfig eth0`;
@ifeth = split(/\n/, $ifconfigin);
($junk,$macaddr) = split(/ HWaddr /, $ifeth[0]);
print "$macaddr\n";

Dave
http://www.flanigan.ne t