Skip to main content
Question

Automox Extension Attribute

  • October 14, 2022
  • 1 reply
  • 9 views

Forum|alt.badge.img+1

I have been trying to setup an extension attribut for the automox agent on my machines. 

>

#!/bin/sh

if [ -x /usr/local/bin/amagent ] ; then
echo "<result>Automox Installed</result>"
else
echo "<result>Not Installed</result>"
fi
<


I have been running the above on a machine that I know has the agent installed but I am always getting the not installed return. 
can anyone give me advice?

thanks

1 reply

Forum|alt.badge.img+3
  • New Contributor
  • 2 replies
  • January 10, 2023

Hi @ChrisW532.,

I'm using the -e (file exists) option instead of -x (is an executable) and it seems to be working for me.

#!/bin/sh if [ -e /usr/local/bin/amagent ] then echo "<result>Installed</result>" else echo "<result>Not Installed</result>" fi