3 ms·
I think I remember combining watch with tail before...not sure why since -f keeps a stream open.
by ianai 8y ago
I think I remember combining watch with tail before...not sure why since -f keeps a stream open.
- dijit 8y agoTail -f works by opening the file and remembering the byte offset, if it’s a log file that gets flushed/wiped then tail -f won’t see anything until the logs fill enough to exceed the previous file contents.
- antocv 8y agoUnless you pass the option --follow=name in which case tail will if necessary reopen the file and follow it even when log-application has closed and moved it elsewhere and opened a new one of the same name.
- stevekemp 8y agoTrue, but the `-F` flag will work in that case.
- dijit 8y agoTIL Works on BSD `tail` too. :)