• 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: 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


  • Follow-Ups:
    • Re: hw.cpufamily vs ASP vs machine.h
      • From: Stephane Sudre <email@hidden>
References: 
 >Re: hw.cpufamily vs ASP vs machine.h (From: Michael Smith <email@hidden>)
 >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