Skip to content

Instantly share code, notes, and snippets.

@jcf
Created December 20, 2008 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcf/38368 to your computer and use it in GitHub Desktop.
Save jcf/38368 to your computer and use it in GitHub Desktop.
Get the ARDAgent version via version.plist
cat /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/version.plist | awk '/CFBundleVersion/{getline;gsub(/[<string>|<\/string>]/,\"\");gsub(/^[ \t]+|[ \t]+$/,\"\");print}'
@Dials-Mavis
Copy link

I recommend using this instead, less yucky grep stuff
/usr/bin/defaults read /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/version.plist CFBundleVersion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment