[sf-perl] hostid in mac os x?
Jim Oser
oserj at OserConsulting.com
Sun Dec 31 17:20:50 PST 2006
http://www.mathworks.com/support/solutions/data/1-171PI.html?
solution=1-171PI
> MAC OS X Open the Apple System Profiler application
> in /Applications/Utilities. Look in the
> Network
> overview of the System Profile to find your
> Mac's Ethernet Address. For example,
> 8.0.2b.e6.87.59
>
> You can also use the command netstat -I en0
Also could do
ifconfig en0
This returns the Mac address of the first ethernet port.
Jim Oser
Oser Computer Solutions
113 Santa Maria Drive
Novato, CA. 94947
www.OserConsulting.com
Office: 415-892-0860
Cell: 415-710-1329
On Dec 29, 2006, at 3:25 PM, Dan Sully wrote:
> * David Alban shaped the electrons to say...
>
>> I don't want to write a C wrapper for sysctl(3), 'cause I want to do
>> this with "core perl", or failing that, with a perl system()
>> invocation to some command that is "core os x". This is for use in
>> something I'd like to be "portable" and I'd rather not require other
>> users install anything.
>
> You can get the system serial number via:
>
> /usr/sbin/system_profiler SPHardwareDataType
>
> -D
> --
> Adobe Photoshop - When you want the truth. Real bad.
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
More information about the SanFrancisco-pm
mailing list