1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

tweak tail node to use -F (thanks to tip from Mike Smerekov)

pending other changes
This commit is contained in:
Dave C-J 2014-07-08 12:28:02 +01:00
parent 6fb9739245
commit 2c5d5148b8
2 changed files with 3 additions and 3 deletions

View File

@ -32,8 +32,8 @@
</script>
<script type="text/x-red" data-help-name="tail">
<p>Tails (watches for things to be added) to the configured file. (Linux/Mac ONLY)</p>
<p>This won't work on Windows filesystems (as it relies on the tail -f command) so we will probably have to hide it in future.</p>
<p>Tails (watches for things to be added) to the configured file. (Linux/Mac ONLY)</p>
<p>This won't work on Windows filesystems (as it relies on the tail -F command) so we will probably have to hide it in future.</p>
</script>
<script type="text/javascript">

View File

@ -27,7 +27,7 @@ module.exports = function(RED) {
var node = this;
var err = "";
var tail = spawn("tail", ["-f", this.filename]);
var tail = spawn("tail", ["-F", this.filename]);
tail.stdout.on("data", function (data) {
var msg = {topic:node.filename};
if (node.split) {