I can successfully ssh into my pc via node-red and now I want to launch a program with parameters, but it always returns on error and the program doesn't launch. the payload that is sent to the exec contains the program info with the params and the exec node is set to the command ssh user@192.168.1.xx
I'm not entirely sure I used the proper escape strings. pwsh.exe is in my system and user paths, but i believe it breaks on the --slot part. If I manually ssh into my pc from the node red VM (proxmox) and run:
& "C:\PROGRA~1\reWASD\REWASD~1.EXE" select_slot "--id" "314856674055983265;4459543588222" "--slot" "slot3"
it works, however via the exec it does not.
the function node prior to it is like so:
msg.payload = '"C:\\Program Files\\PowerShell\\7\\pwsh.exe" -Command "& \\"C:\\PROGRA~1\\reWASD\\REWASD~1.EXE\\" select_slot --id \\"314856674055983265;4459543588222\\" --slot \\"slot3\\""'; return msg;