I am trying to create an Extension Attribute to get the version of a file. The file appears to be a UNIX executable.
I worked with the company and they said I can go to the terminal and type the following command:
/Applications/sgtlabs/AristotleNT -version
The following information is returned on screen:
2019-04-09 09:04:45.127 AristotleNT[1101:15734]
Version 7.3.0.1p Copyright (c) 2004-2018 Sergeant Laboratories Inc.
I created the following script and added it to an extension attribute:
#!/bin/sh
ArisVers=$(/Applications/sgtlabs/AristotleNT -version)
echo "<result>$ArisVers</result>"
This does not do anything and the extension attribute remains blank. Looking for any help to extract and get just the version info from the output. Any help would be greatly appreciated.