[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tail -f behaviour
From: |
f0rhum |
Subject: |
tail -f behaviour |
Date: |
Wed, 18 Jan 2017 15:17:59 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
Hi
This is about tail v5.97
I have a log file that is updated every 5mn, a timestamped message being
appended to a new line at the end
On the third time an indentical message would be writen, the last line
is replaced by "..." then the message is writen
Tracking changes with tail -f stops after this, which may be intended
behaviour as man states "as the file grows".
Although, when pruning a bunch of lines from the head a the file, then a
yet running tracking still won't update, like if the file size was
caught on the very beginning of the command and never updated on each
iteration.
To be honest, I didn't try to see what happens if I prune a single line
and see what the next 2nd and further iterations show.
- tail -f behaviour,
f0rhum <=