Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A shell script to get machine serial numbers' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A shell script to get machine serial numbers
Authored by: isd_glory on Apr 05, '04 11:14:10AM

system_profiler usually takes a while to run because it has to prepare a whole stack of information before it starts outputting things. If all you are looking for is the computer's serial number, this command would be a little more efficient:

system_profiler SPHardwareDataType | grep "Serial Number"

This way, the system_profiler only has to lookup basic hardware data instead of going through the whole system profiler process. Additionally, system_profiler can look up a bunch of other data types if you choose.



[ Reply to This | # ]
AWESOME
Authored by: sapridyne on Apr 05, '04 12:11:50PM

You know, it's stuff like this hint that makes me love OS X even more... what a kick-ass operating system. I have been using OS X since DP 3 and I just got my ACSA -- and I keep on learning cool new stuff like this. Thanks, dude.



[ Reply to This | # ]