Using a fixlet to run scripts on the target device.

That’ll be somewhat difficult to troubleshoot without knowing what either script does, but I could point out a couple of common issues…

Could be that one of the scripts is making an incorrect assumption about the ‘current working directory’. The working directory’ will not be the path of the script, but the /var/opt/BESClient/__BESData/sitename directory. One of your scripts may need to cd into another directory to make relative paths work.

Also if either script relies on an environment variable, the environment of the BESClient process may not have all the variables you expect, as it is a non-login shell and may not have processed files like .login or .bashrc

You might try outputting the stdout and stderr to see what, if any, error messages are displayed. I’m away from the computer at the moment, but likely change your script line from

. /opt/oracle/scripts/7-DAYADMIN/checkACI.sh

To

/bin/sh -x /opt/oracle/scripts/7-DAYADMIN/checkACI.sh > /tmp/script-output.txt 2>&1

Then read the script-output.txt file to see where processing stops and what message is displayed.

1 Like