MAC Address on Linux
userev at canelasoftware.com
Sat Oct 9 12:42:48 EDT 2004
> On 10/8/04 3:45 PM, "Mark Talluto" <userev at canelasoftware.com>
> > Thanks for the tip! It worked like a charm. Once I get the parsing
> > the returned data down, I'll update Ken with the Linux bit.
> Thanks, Mark! I'd appreciate that...
Here is the snippet for finding the MAC Address on Linux. I had to
learn some basics on PCRE syntax. Took a while, but was worth the
if there is a file("/sbin/ifconfig") then
put shell("/sbin/ifconfig") into temp
get matchText(temp,"HWaddr[* ]([0-9A-Z:]*)",retVal)
return "An error has occured."
More information about the Use-livecode