# How to run a bash script from node red?

**URL:** https://discourse.nodered.org/t/how-to-run-a-bash-script-from-node-red/406
**Category:** General
**Created:** [26 May 2018 09:17 UTC](https://discourse.nodered.org/t/how-to-run-a-bash-script-from-node-red/406 "2018-05-26T09:17:12Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)
#### Post date: [26 May 2018 09:33 UTC](https://discourse.nodered.org/t/how-to-run-a-bash-script-from-node-red/406/3 "2018-05-26T09:33:42Z")

</div>

(Blush)

This is embarrassing for me.

I don’t know why it is, but sometimes I have to ask a “dumb” question before I can resolve it myself.

What I missed is in the EXEC node I was only entering the file name of the script I wanted to run.  
I now realise I have to enter:  
bash (filename)  
and it works.

I am sorry.

Believe me, I don’t like to waste people’s time.

---

_[View the full topic](https://discourse.nodered.org/t/how-to-run-a-bash-script-from-node-red/406)._
