Re: hw.cpufamily vs ASP vs machine.h
Re: hw.cpufamily vs ASP vs machine.h
- Subject: Re: hw.cpufamily vs ASP vs machine.h
- From: Michael Smith <email@hidden>
- Date: Wed, 28 Feb 2007 01:45:50 -0800
On Feb 27, 2007, at 12:04 PM, email@hidden wrote:
I'm trying to find a solution to get the CPU Type on a Mac as it's
displayed in Apple System Profiler.
Invoke the system_profiler tool and parse its output; use something
like "system_profiler -xml SPHardwareDataType".
The output is in standard plist format - see plist(5) for some
pointers on sucking this into a regular CF datatype, from which you
can trivially extract the cpu_type key.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden