# Issue: PulseAudio command working with console but not in Exec node

**URL:** <https://discourse.nodered.org/t/issue-pulseaudio-command-working-with-console-but-not-in-exec-node/46716>\
**Category:** General\
**Created:** [5 June 2021 06:22 UTC](https://discourse.nodered.org/t/issue-pulseaudio-command-working-with-console-but-not-in-exec-node/46716 "2021-06-05T06:22:08Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![janedoe123](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@janedoe123](https://discourse.nodered.org/u/janedoe123)\
**Post date:** [5 June 2021 07:37 UTC](https://discourse.nodered.org/t/issue-pulseaudio-command-working-with-console-but-not-in-exec-node/46716/10 "2021-06-05T07:37:23Z")

</div>

I just ran into this post from knolleary

[Nov '19](https://discourse.nodered.org/t/how-to-set-env-variable/18612/5)

One way of setting environment variables is in your `settings.js` file.

The following will set the env var `MY_ENV_VAR` :

```auto
process.env.MY_ENV_VAR = "Hello World";

```

You can add lines like that to the top of your settings file.

* * *

Does it mean I need to force them all in settings.js ?

---

_[View the full topic](https://discourse.nodered.org/t/issue-pulseaudio-command-working-with-console-but-not-in-exec-node/46716)._
