• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: hw.cpufamily vs ASP vs machine.h
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: hw.cpufamily vs ASP vs machine.h
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: Re: hw.cpufamily vs ASP vs machine.h
  • Next by Date: Re: hw.cpufamily vs ASP vs machine.h
  • Previous by thread: Re: hw.cpufamily vs ASP vs machine.h
  • Next by thread: Re: hw.cpufamily vs ASP vs machine.h
  • Index(es):
    • Date
    • Thread