Dollar Universe: error=8: Exec format error when trying to run a script
search cancel

Dollar Universe: error=8: Exec format error when trying to run a script

book

Article ID: 133783

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

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.

Environment

OS: UNIX

Component : DOLLAR UNIVERSE 6.x or 7.x

Cause

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.

Resolution

Need to add as first line the shell interpreter to be used on any scripts.

For example:

#!/bin/ksh

or 

#!/bin/bash