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:
parent
6fb9739245
commit
2c5d5148b8
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
<script type="text/x-red" data-help-name="tail">
|
<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>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) so we will probably have to hide it in future.</p>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -27,7 +27,7 @@ module.exports = function(RED) {
|
|||||||
var node = this;
|
var node = this;
|
||||||
|
|
||||||
var err = "";
|
var err = "";
|
||||||
var tail = spawn("tail", ["-f", this.filename]);
|
var tail = spawn("tail", ["-F", this.filename]);
|
||||||
tail.stdout.on("data", function (data) {
|
tail.stdout.on("data", function (data) {
|
||||||
var msg = {topic:node.filename};
|
var msg = {topic:node.filename};
|
||||||
if (node.split) {
|
if (node.split) {
|
||||||
|
Loading…
Reference in New Issue
Block a user