• 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: gathering system information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gathering system information


  • Subject: Re: gathering system information
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 10 May 2008 11:27:47 -0700


On 10 May '08, at 8:28 AM, Torsten Curdt wrote:

Is there any other way of collection system information like
- OS version
- processor speed and architecture
- RAM
other than calling
  system_profiler -xml > system.plist

This was just asked a few days ago on the darwin-userlevel mailing list; search the archives for details. That poster wanted more info than you list here, but the answer was that it would be more trouble than it's worth to collect it manually. In particular it was stated that determining the user-visible name of the processor would require making your own lookup table, since those names are based more on marketing than on explicit ID numbers.


Note that you don't have to make system_profiler write to a file. You can call it with NSTask, attach an NSPipe to its stdout, and read that with an NSFileHandle.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: gathering system information
      • From: Torsten Curdt <email@hidden>
References: 
 >gathering system information (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Anyone used btlsocket framework?
  • Next by Date: Re: Cocoa coding style (was Re: Did I reinvent the wheel?)
  • Previous by thread: Re: gathering system information
  • Next by thread: Re: gathering system information
  • Index(es):
    • Date
    • Thread