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


Click here to return to the 'See basic system information on the desktop' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
See basic system information on the desktop
Authored by: rammjet on Apr 01, '09 09:51:51AM
For lower overhead, parse these:

computer name: scutil --get ComputerName
osx version:     sw_vers
RAM size:       sysctl -n hw.memsize (in bytes, keep dividing by 1024 to get what units you desire)
processor info:   sysctl -n machdep.cpu.brand_string or: sysctl -n machdep.cpu.vendor

NOTE: multiple parameters may be specified after sysctl (ie: sysctl -n hw.memsize machdep.cpu.brand_string)
each parameter will be printed on a separate line

[ Reply to This | # ]