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: Peter Bierman <email@hidden>
- Date: Wed, 28 Feb 2007 11:37:28 -0800
On 28 févr. 07, at 10:45, Michael Smith wrote:
system_profiler -xml SPHardwareDataType
At 11:31 AM +0100 2/28/07, Stephane Sudre wrote:
This is a good last resort solution. But I would
like to avoid relying on parsing because that
would mean trusting nothing is changed by Apple
between 2 releases.
system_profiler is the only API that provides the
human readable textual description you're looking
for. The -xml flag will insulate you against
format changes, and is designed for machine
parsing.
-pmb
_______________________________________________
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