-
Notifications
You must be signed in to change notification settings - Fork 0
follow #259
Copy link
Copy link
Open
Labels
commandrelated to a commandrelated to a commandhelp wantedopen problem waiting for help/discussionopen problem waiting for help/discussionincompletefurther information is required before starting implementationfurther information is required before starting implementation
Metadata
Metadata
Assignees
Labels
commandrelated to a commandrelated to a commandhelp wantedopen problem waiting for help/discussionopen problem waiting for help/discussionincompletefurther information is required before starting implementationfurther information is required before starting implementation
Problem
Would be nice to have a
tail -Fclone (following file rotations).Solution
Several working solutions are possible:
BufferedReader.readLine()+Thread.sleep()RandomAccessFile+Thread.sleep()Beware: on Windows
sun.nio.fs.WindowsFileAttributes#fileKeyyields null.Benefit
Portable alternative to
tail -Fthat works on Windows out-of-the-box.