Skip to main content

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

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