# The exec node fails to execute a command that works in the terminal

**URL:** <https://discourse.nodered.org/t/the-exec-node-fails-to-execute-a-command-that-works-in-the-terminal/27897>\
**Category:** General\
**Created:** [6 June 2020 14:20 UTC](https://discourse.nodered.org/t/the-exec-node-fails-to-execute-a-command-that-works-in-the-terminal/27897 "2020-06-06T14:20:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [6 June 2020 15:02 UTC](https://discourse.nodered.org/t/the-exec-node-fails-to-execute-a-command-that-works-in-the-terminal/27897/3 "2020-06-06T15:02:29Z")

</div>

Here for example [Exec script to UI app](https://discourse.nodered.org/t/exec-script-to-ui-app/14643/2)

Try configuring the exec node to run for example:

```auto
export DISPLAY=:0 && amixer -q -D pulse sset Master toggle

```

---

_[View the full topic](https://discourse.nodered.org/t/the-exec-node-fails-to-execute-a-command-that-works-in-the-terminal/27897)._
