• 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: "Justin C. Walker" <email@hidden>
  • Date: Sat, 15 Dec 2007 16:57:08 -0800


On Dec 15, 2007, at 15:04 , David M. Cotter wrote:

Invoke the system_profiler tool and parse its output; use something like "system_profiler -xml SPHardwareDataType".

i am unable to find any API called "system_profiler()" that I can call from my C++ (carbon) program.


are you thinking i need to call system("system_profiler -xml SPHardwareDataType") ?
if so, where does the output go? how do i get it into a memory buffer? am i supposed to pipe it to a temp file then read that file to parse it?

Check "man popen". That may help.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
If it weren't for carbon-14, I wouldn't date at all.
-----------


_______________________________________________ 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
References: 
 >Re: hw.cpufamily vs ASP vs machine.h (From: "David M. Cotter" <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