Jump to content
View in the app

A better way to browse. Learn more.

Pulseway

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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:

Quote

#!/bin/bash
echo "exiting with exit 2"
exit 2

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

Quote
Output
exiting with exit 2
-2
Exit Code

but it looks like this:

Quote
Output
Could not execute automation ad-hoc script shell
-1
Exit Code

What am I doing wrong?

Linux agent 9.2, running on Ubuntu 22.04

Edited by CloudlySimon

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.