Skip to main content
Question

Help with detection script Bomgar Plist

  • March 16, 2017
  • 1 reply
  • 0 views

KyleEricson
Forum|alt.badge.img+16

version_line=$(/usr/libexec/PlistBuddy -c "Print:Bomgar-Version" "/Library/Documentation/B-Info.plist" 2>/dev/null)

if [ $? != 0 ]; then echo "none"
else echo $version_line
fi

exit 0

I have this but my issue is the .app file has a diffrent name for each mac.
Its the Bomgar.app but the name has a ID tied into it example bomgar-scc-1234567-123456.app
How can I use the above code to look at the plist file inside the contents of this .app file.
example code

version_line=$(/usr/libexec/PlistBuddy -c "Print:CFBundleGetInfoString" "/Users/Shared/bomgar-scc-1234567-123456.app/Contents/Info.plist" 2>/dev/null)

if [ $? != 0 ]; then echo "none"
else echo $version_line
fi

exit 0

1 reply

Forum|alt.badge.img+11
  • Valued Contributor
  • 196 replies
  • March 16, 2017

I'm currently using the Extension Attribute below to determine the version of the Jump Client.

!/bin/sh

bomgarpresent=$( /bin/ls -d /Users/Shared/bomgar* | /usr/bin/awk -F "Contents" '{ print $1 }' | /usr/bin/cut -d ':' -f1 )
result=$( /usr/bin/defaults read $bomgarpresent/Contents/Info CFBundleGetInfoString | /usr/bin/cut -d ' ' -f1 )
/bin/echo "<result>$result</result>"


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings