Hi,
I'm looking for a way to enter command line from node red to the terminal of my linux pc.I was looking online and i found that the node exec would do the trick.
The command line i want to use for a example is: influxd backup -portable /tmp/backup_ex
It works if i directly enter this in my terminal. And for this instruction you don't need to enter your pasword. This is why i choose this instruction as a first step.
I did unclicked the append msg.payload as suggested online.
But i keep getting the error: /bin/sh: 1: influxd: not found
So i'm wondering because the error say that it did not find a directory that this is not the node i am looking for. And this node starts a program or i'm i wrong?
And if so wich node can i use?
Thanks at advance,
Kind regards!
Ward
PS: the code of the node:
[{"id":"b703d18a.ec6b1","type":"exec","z":"3263073.a348778","command":"influxd backup -portable /tmp/backup_ex","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Backup InfluxDB","x":400,"y":160,"wires":[[],["24aa3131.cf9eae"],[]]}]