mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
slight update to daemon node words
to clarify arguments
This commit is contained in:
parent
0f9bd05180
commit
059c7a2d67
@ -1,9 +1,12 @@
|
|||||||
node-red-node-daemon
|
node-red-node-daemon
|
||||||
====================
|
====================
|
||||||
|
|
||||||
A <a href="http://nodered.org" target="_new">Node-RED</a> node that runs and monitors a long running system command.
|
A <a href="http://nodered.org" target="_new">Node-RED</a> 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.
|
Useful for monitoring command line based processes.
|
||||||
|
|
||||||
@ -20,10 +23,18 @@ Usage
|
|||||||
|
|
||||||
Calls out to a long running system command. Sends <b>msg.payload</b> to stdin of the process.
|
Calls out to a long running system command. Sends <b>msg.payload</b> 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 <i>may</i> 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 <a href="https://github.com/antirez/dump1090" target ="_new">dump1090</a> 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 <i>may</i> have to kill it manually.
|
||||||
|
|
||||||
|
For example it can be used to run and then monitor the
|
||||||
|
<a href="https://github.com/antirez/dump1090" target="_new">dump1090</a> plane
|
||||||
|
spotter, and also to interact with various python apps that everyone seem to write
|
||||||
|
these days :-)
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<input type="text" id="node-input-command" placeholder="command">
|
<input type="text" id="node-input-command" placeholder="command">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-args"><i class="fa fa-list"></i> Args</label>
|
<label for="node-input-args"><i class="fa fa-list"></i> Arguments</label>
|
||||||
<input type="text" id="node-input-args" placeholder="space separated arguments">
|
<input type="text" id="node-input-args" placeholder="space separated arguments">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
@ -45,6 +45,8 @@
|
|||||||
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||||
<input type="text" id="node-input-name" placeholder="Name">
|
<input type="text" id="node-input-name" placeholder="Name">
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-tips"><b>Note:</b> The command should just be the actual command.
|
||||||
|
All parameters should be passed in as arguments.</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/x-red" data-help-name="daemon">
|
<script type="text/x-red" data-help-name="daemon">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-daemon",
|
"name" : "node-red-node-daemon",
|
||||||
"version" : "0.0.2",
|
"version" : "0.0.3",
|
||||||
"description" : "A Node-RED node that runs and monitors a long running system command.",
|
"description" : "A Node-RED node that runs and monitors a long running system command.",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user