tweak tail.js to only send changed/new lines.

This commit is contained in:
Dave Conway-Jones 2014-08-12 19:33:41 +01:00
parent 972e6fc6b3
commit b3c3bffeaa
1 changed files with 1 additions and 1 deletions

View File

@ -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