• 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: How to get the Mac OS X version?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the Mac OS X version?


  • Subject: Re: How to get the Mac OS X version?
  • From: Finlay Dobbie <email@hidden>
  • Date: Sat, 8 Sep 2001 16:09:53 +0100

On Saturday, September 8, 2001, at 03:12 pm, Rosyna wrote:

sw_vers outputs the information all nice and pretty in the terminal. If you don't care about the build number, you can use Carbon's gestalt.

All sw_vers does is get the contents of the plist and read the dictionary, the prints it out to the terminal :-)

[localhost:/usr/bin] root# sw_vers > & /dev/null & ; ps -caux | grep sw_vers | awk '{print $2}' | xargs fs_usage
[1] 9309
16:08:29 open share/zoneinfo/Europe/London 0.000277 sw_vers
16:08:29 read 0.000063 sw_vers
16:08:29 close 0.000066 sw_vers
16:08:29 open var/root/.CFUserTextEncoding 0.000209 sw_vers
16:08:29 read 0.000044 sw_vers
16:08:29 close 0.000036 sw_vers
16:08:29 open Services/SystemVersion.plist 0.000092 sw_vers
16:08:29 fstat 0.000016 sw_vers
16:08:29 read 0.000042 sw_vers
16:08:29 close 0.000019 sw_vers
16:08:29 fstat 0.000014 sw_vers
16:08:29 write 0.000024 sw_vers

[localhost:/usr/bin] root# otool -L /usr/bin/sw_vers
/usr/bin/sw_vers:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 397.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 50.0.0)

-- Finlay


  • Follow-Ups:
    • Re: How to get the Mac OS X version?
      • From: Rosyna <email@hidden>
References: 
 >Re: How to get the Mac OS X version? (From: Rosyna <email@hidden>)

  • Prev by Date: Re: Mac OS X 10.1 File Name Extension Guidelines
  • Next by Date: Re: Locking Files?
  • Previous by thread: Re: How to get the Mac OS X version?
  • Next by thread: Re: How to get the Mac OS X version?
  • Index(es):
    • Date
    • Thread