On a Unix system, when trying to launch a script in a Uproc, the uproc Aborts with could not submit and the following error is logged in the Product log:
k_unix_create_daemon_fd | Cannot launch command /scripts/test.sh error=8: Exec format error
The same error can be replicated when this faulty script is set as a script on an Alerting Rule invoked on this node.
OS: UNIX
Component : DOLLAR UNIVERSE 6.x or 7.x
This error occurs because there is no shell path in the script or the character ! is missing.
Need to add "#!/bin/ksh" to the beginning of the script.
Need to add as first line the shell interpreter to be used on any scripts.
For example:
#!/bin/ksh
or
#!/bin/bash