[sf-perl] hostid in mac os x?

Dan Sully daniel at electricrain.com
Fri Dec 29 15:25:37 PST 2006


* 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.


More information about the SanFrancisco-pm mailing list