Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Exporting System Profiler info via the command line?

Exporting System Profiler info via the command line?
Thread Tools
DevNine
Dedicated MacNNer
Join Date: Mar 2002
Status: Offline
Reply With Quote
Jan 3, 2007, 10:55 AM
 
Wondering if it possible to export System Profiler information via the command line.
Instead of clicking About this Mac, More Info..File, Save As
is there anyway of getting the system profiler .xml file via the command line? I tried running System Profiler via the terminal with --help flags but it doesn't appear to accept paramaters.
http://winlab.csbnet.se Visit the Mac Demo Scene.
     
WJMoore
Grizzled Veteran
Join Date: Jan 2002
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Jan 3, 2007, 04:12 PM
 
Have a read of: man system_profiler

Boils down to: system_profiler -xml > profile.spx
spx extension allows the System Profiler app to open the file if necessary.
( Last edited by WJMoore; Jan 3, 2007 at 04:15 PM. Reason: Added more detail)
     
DevNine  (op)
Dedicated MacNNer
Join Date: Mar 2002
Status: Offline
Reply With Quote
Jan 4, 2007, 06:07 AM
 
Originally Posted by WJMoore View Post
Have a read of: man system_profiler

Boils down to: system_profiler -xml > profile.spx
spx extension allows the System Profiler app to open the file if necessary.
Ahh, excellent. Many thanks.
http://winlab.csbnet.se Visit the Mac Demo Scene.
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 12:33 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,