Modify Tail node to only send new messages

Now with test that works with it.
Part of Issue #326
Now need to redo with libs that support windows.
This commit is contained in:
Dave C-J
2014-08-22 12:44:40 +01:00
parent a8ade083d4
commit ecbf4add6b
4 changed files with 58 additions and 19 deletions

View File

@@ -16,7 +16,7 @@
<script type="text/x-red" data-template-name="tail">
<div class="form-row node-input-filename">
<label for="node-input-filename"><i class="icon-file"></i> Filename</label>
<label for="node-input-filename"><i class="fa fa-file"></i> Filename</label>
<input type="text" id="node-input-filename" placeholder="Filename">
</div>
<div class="form-row">
@@ -25,15 +25,15 @@
<label for="node-input-split" style="width: 70%;">Split lines if we see \n ?</label>
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-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">
</div>
<div class="form-tips">WON'T work on Windows.</div>
<!-- <div class="form-tips">WON'T work on Windows.</div> -->
</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>This won't work on Windows filesystems, as it relies on the tail -F command.</p>
</script>
<script type="text/javascript">