follow #259
Labels
command
related to a command
help wanted
open problem waiting for help/discussion
incomplete
further information is required before starting implementation
Problem
Would be nice to have a
tail -F
clone (following file rotations).Solution
Several working solutions are possible:
BufferedReader.readLine()
+Thread.sleep()
RandomAccessFile
+Thread.sleep()
Beware: on Windows
sun.nio.fs.WindowsFileAttributes#fileKey
yields null.Benefit
Portable alternative to
tail -F
that works on Windows out-of-the-box.The text was updated successfully, but these errors were encountered: