From b3c3bffeaab6800b580976dd4141457ee773ad25 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 12 Aug 2014 19:33:41 +0100 Subject: [PATCH] tweak tail.js to only send changed/new lines. --- nodes/core/storage/28-tail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/core/storage/28-tail.js b/nodes/core/storage/28-tail.js index 58c2bd06b..e241d4a6e 100644 --- a/nodes/core/storage/28-tail.js +++ b/nodes/core/storage/28-tail.js @@ -28,7 +28,7 @@ module.exports = function(RED) { var err = ""; // TODO: rewrite to use node-tail - var tail = spawn("tail", ["-F", this.filename]); + var tail = spawn("tail", ["-F", "-n", "0", this.filename]); tail.stdout.on("data", function (data) { if (node.split) { // TODO: allow customisation of the line break - as we do elsewhere