MAC Address on Linux
kray at sonsothunder.com
Sat Oct 9 15:16:28 CDT 2004
On 10/9/04 11:42 AM, "Mark Talluto" <userev at canelasoftware.com> wrote:
>> 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
> case "Linux"
> 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."
> end if
Thanks, Mark... I tried this in my copy of RedHat 9, and I don't get
anything with "HWaddr" in /sbin/ifconfig. When I looked at Mark W
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode