node-red-node-daemon 0.0.14

A Node-RED node that runs and monitors a long running system command.

npm install node-red-node-daemon

A Node-RED node that runs and monitors a long running system command.

Similar to the exec node - but this calls the command at start time and then pipes any input to the node to the STDIN of the running command, and feeds any STDOUT to the first output.

Useful for monitoring command line based processes.


Run the following command in your Node-RED user directory - typically ~/.node-red

npm i node-red-node-daemon


Calls out to a long running system command. Sends msg.payload to stdin of the process.

Note Only the command itself should be placed in the command field. All parameters must be placed in the arguments field.

The command provides 3 outputs... stdout, stderr, and return code, from the running command.

If the called program stops (i.e. a return code is produced), this node can attempt to restart the command automatically.

You may set msg.kill to a signal name (e.g. SIGINT, SIGHUP) to stop the process (defaults to SIGINT if not specified) - but if you have restart flag set it will then auto restart.

You can send msg.start to re-start the process.

Note : when you stop Node-RED running we may not get a chance to kill the called program so it may remain running. You may have to kill it manually.

For example it can be used to run and then monitor the dump1090 plane spotter, and also to interact with various python apps that everyone seem to write these days :-)

Node Info

Version: 0.0.14
Updated 3 months, 3 weeks ago
License: Apache-2.0


8 in the last day
74 in the last week
321 in the last month


  • daemon


  • node-red
  • daemon
  • shell
  • exec


  • dceejay
  • knolleary