Run Shell Script

Posted on
Sun Feb 07, 2021 4:51 am
MarcoGT offline
Posts: 1091
Joined: Sep 11, 2014
Location: Germany

Run Shell Script

Hi all,

I would like to run a shell (.sh) script when Indigo starts.
I created the script and placed it on the Desktop and with "ls" I get:

/Users/homeautomation/Desktop/node-red.sh

But if I try to run, Indigo returns:

Action Group Node-Red
Action Collection Error Run Shell Script action: script file doesn't exist: /Users/homeautomation/Desktop/node-red.sh

Posted on
Sun Feb 07, 2021 6:20 am
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Run Shell Script

Could be a couple things.

First, you need to make sure that you have the appropriate shebang line at the top of the script. AFAIK, this is required in order to do step 2. I.e.,

Code: Select all
#!/bin/zsh
#!/bin/bash
Second, you need to make sure that your shell script is set to Executable. Do this:

Code: Select all
chmod u+x YourScriptFileName.sh
If it still doesn't work, check the permissions to ensure that Indigo has read access to the file.

Code: Select all
#!/bin/zsh

echo "Hello world."

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests