Hello!!
I'm trying to execute a Java program from node-red in my raspberry pi that consists on entering a name so that it can be displayed as an output, and I wonder how can I introduce the input that I want (the name Mickey Mouse for example), in the exec node so that it can be sent to the program without getting an error, and the output can be displayed: "Welcome Mickey Mouse". This is the flow I'm working on and the java program that is being executed is SalsaHoy.java, which already works by itself on the Raspberry Pi but not when it is called from node-red with this flow:
[{"id":"ae4103fa.c2bc","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"7d8029c6.f1c028","type":"exec","z":"ae4103fa.c2bc","command":"cd Java && javac SalsaHoy.java && java SalsaHoy","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Execute SalsaHoy.java","x":610,"y":380,"wires":[["2b6a9acd.0d3736"],[],[]]},{"id":"2b6a9acd.0d3736","type":"debug","z":"ae4103fa.c2bc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":830,"y":380,"wires":[]},{"id":"1a3c269a.9341a9","type":"inject","z":"ae4103fa.c2bc","name":"","topic":"","payload":"Mickey Mouse","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":380,"y":380,"wires":[["7d8029c6.f1c028"]]}]
Thank you in advance!!