Re: How to get the Mac OS X version?
Re: How to get the Mac OS X version?
- Subject: Re: How to get the Mac OS X version?
- From: Rosyna <email@hidden>
- Date: Sat, 8 Sep 2001 11:22:29 -0700
But its already formatted for you, funner!
Ack, at 9/8/01, Finlay Dobbie said:
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)
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insane People