At 10:12 AM +1100 2/26/03, John Horner wrote:
I have an OSX machine used as a server in another room.

I nearly always get to it via a shell app.

I can't remember the exact version of X that's on it.

How do I find out if it's 10.1.3 or 10.1.5 from the command-line?

Use the command "sw_vers". On my PowerBook here:


adam% sw_vers
ProductName:    Mac OS X
ProductVersion: 10.2.4
BuildVersion:   6I32

Alternately, look at /S/L/CoreServices/SystemVersion.plist, which is what sw_vers is parsing:

adam% cat /System/Library/CoreServices/SystemVersion.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
<key>ProductBuildVersion</key>
<string>6I32</string>
<key>ProductCopyright</key>
<string>Apple Computer, Inc. 1983-2003</string>
<key>ProductName</key>
<string>Mac OS X</string>
<key>ProductUserVisibleVersion</key>
<string>10.2.4</string>
<key>ProductVersion</key>
<string>10.2.4</string>
</dict>
</plist>


adam

Reply via email to