# What shell does the exec node call?

**URL:** <https://discourse.nodered.org/t/what-shell-does-the-exec-node-call/82298>\
**Category:** General\
**Tags:** linux\
**Created:** [24 October 2023 11:19 UTC](https://discourse.nodered.org/t/what-shell-does-the-exec-node-call/82298 "2023-10-24T11:19:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [24 October 2023 11:19 UTC](https://discourse.nodered.org/t/what-shell-does-the-exec-node-call/82298/1 "2023-10-24T11:19:10Z")

</div>

On my Raspberry pi, when I call OS commands via the exec mode, they _seem_ to be executed in the Bash shell (which is good since /bin/sh is the slimline Dash shell).

Is /bin/bash invoked explicitly or is it just whichever shell Node-red was started from?  
Or something else, a parameter maybe?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [24 October 2023 11:35 UTC](https://discourse.nodered.org/t/what-shell-does-the-exec-node-call/82298/2 "2023-10-24T11:35:29Z")

</div>

if on Linux and bash exists then yes it selects bash. If on Linux and bash not present I think it uses sh

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 November 2023 11:35 UTC](https://discourse.nodered.org/t/what-shell-does-the-exec-node-call/82298/3 "2023-11-07T11:35:48Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
