RE: How to retrieve a MAC address

2003-06-19 Thread abg
> Kipp, James wrote: > $ifconfig = '/sbin/ifconfig'; > my @hwaddrs = `$ifconfig` =~ /\b((?:[a-f\d]{2}:){5}[a-f\d]{2})\b/gi; Thanks! Worked like a charm. Aaron -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to retrieve a MAC address

2003-06-19 Thread abg
Do you have any examples of this in action? > -Original Message- > From: Kipp, James [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 19, 2003 11:26 AM > To: Aaron Gillette; [EMAIL PROTECTED] > Subject: RE: How to retrieve a MAC address > > > you can parse ifconfig or arp and get it > >

How to retrieve a MAC address

2003-06-19 Thread abg
Hi All, I need to retrieve the MAC address of my local system from a Perl script. I'm running RedHat 7.2. Can anyone point me to some sample code for accomplishing this? I've Googled for quite a while, and come up empty. Alternatively, does anyone know where the MAC is stored on RedHat 7.2? Tha