mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
3e8353fa0e
commit
cabf9ad00c
@ -46,8 +46,6 @@ module.exports = function(RED) {
|
|||||||
node.running = true;
|
node.running = true;
|
||||||
var line = "";
|
var line = "";
|
||||||
|
|
||||||
node.on("input", inputlistener);
|
|
||||||
|
|
||||||
node.child.stdout.on('data', function (data) {
|
node.child.stdout.on('data', function (data) {
|
||||||
if (node.op === "string") { data = data.toString(); }
|
if (node.op === "string") { data = data.toString(); }
|
||||||
if (node.op === "number") { data = Number(data); }
|
if (node.op === "number") { data = Number(data); }
|
||||||
@ -111,6 +109,8 @@ module.exports = function(RED) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
runit();
|
runit();
|
||||||
|
|
||||||
|
node.on("input", inputlistener);
|
||||||
}
|
}
|
||||||
RED.nodes.registerType("daemon",DaemonNode);
|
RED.nodes.registerType("daemon",DaemonNode);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-daemon",
|
"name" : "node-red-node-daemon",
|
||||||
"version" : "0.0.15",
|
"version" : "0.0.16",
|
||||||
"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