diff --git a/utility/daemon/README.md b/utility/daemon/README.md index 32bba0c4..2ed00f2b 100644 --- a/utility/daemon/README.md +++ b/utility/daemon/README.md @@ -1,9 +1,12 @@ node-red-node-daemon ==================== -A Node-RED node that runs and monitors a long running system command. +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. +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. @@ -20,10 +23,18 @@ Usage Calls out to a long running system command. Sends msg.payload to stdin of the process. -Provides 3 outputs... stdout, stderr, and return code, from the running command. +**Note** Only the command itself should be placed in the command field. +All parameters **must** be placed in the arguments field. -If the called program stops (i.e. a return code is produced), this node can attempt to restart the command. +The command provides 3 outputs... stdout, stderr, and return code, from the running command. -**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. +If the called program stops (i.e. a return code is produced), this node can attempt +to restart the command automatically. -For example I have used it to run and then monitor the dump1090 plane spotter, and also to interact with various python apps that everyone seem to write these days :-) +**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 :-) diff --git a/utility/daemon/daemon.html b/utility/daemon/daemon.html index dc32f07d..b6b17d5c 100644 --- a/utility/daemon/daemon.html +++ b/utility/daemon/daemon.html @@ -20,7 +20,7 @@