Node-RED running on a Pi Zero W v1.1
Raspbian GNU/Linux 11 (bullseye) desktop version
Node-RED version: v2.2.2
Node.js version: v14.19.1
accessing NR from Mac Mini Safari
Using the exec
node and sending the command 'amixer -v' the version comes back, BUT the exec node shows an error and says the command failed!
Here is the flow:
[{"disabled":false,"env":[],"id":"58ad38887591e1b1","info":"","label":"Flow 3","type":"tab"},{"active":true,"complete":"true","console":false,"id":"38409c9414d4fb0b","name":"stdout","statusType":"auto","statusVal":"","targetType":"full","tosidebar":true,"tostatus":false,"type":"debug","wires":[],"x":490,"y":80,"z":"58ad38887591e1b1"},{"active":true,"complete":"true","console":false,"id":"de852fbd07407b7a","name":"stderr","statusType":"auto","statusVal":"","targetType":"full","tosidebar":true,"tostatus":false,"type":"debug","wires":[],"x":490,"y":120,"z":"58ad38887591e1b1"},{"active":true,"complete":"true","console":false,"id":"42faac21ce0190b3","name":"return code","statusType":"auto","statusVal":"","targetType":"full","tosidebar":true,"tostatus":false,"type":"debug","wires":[],"x":510,"y":160,"z":"58ad38887591e1b1"},{"crontab":"","id":"84f238ce5b65227d","name":"","once":false,"onceDelay":0.1,"payload":"","payloadType":"date","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","topic":"","type":"inject","wires":[["17c3fba6aef9ee4f"]],"x":180,"y":120,"z":"58ad38887591e1b1"},{"addpay":"","append":"-v","command":"amixer ","id":"17c3fba6aef9ee4f","name":"","oldrc":false,"timer":"","type":"exec","useSpawn":"false","winHide":false,"wires":[["38409c9414d4fb0b"],["de852fbd07407b7a"],["42faac21ce0190b3"]],"x":330,"y":120,"z":"58ad38887591e1b1"}]```