Jump to content

Could not execute automation ad-hoc script shell


Recommended Posts

I have a few bash scripts that I want to exit with an error code under certain circumstances, as I want the script to show as failed.

The issue is that the output for the script is empty, except for the line "Could not execute automation ad-hoc script shell"

This only occurs when the exit code is greater than 0.

Example below:


echo "exiting with exit 2"
exit 2

I'd expect the output of the script to be:

exiting with exit 2
Exit Code

but it looks like this:

Could not execute automation ad-hoc script shell
Exit Code

What am I doing wrong?

Linux agent 9.2, running on Ubuntu 22.04

Edited by CloudlySimon
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...