in reply to File::Tail can not get output

Your test1 "works" for me. When I run it on an existing file (which has not been updated for many days), it shows me all the lines in the file, but it takes about a minute before I get any output. This roughly corresponds to the default maxinterval of 60 seconds. Are you sure you waited long enough?

When I change the code to use maxinterval=1, like your test2, I see the output much sooner, as expected.

Replies are listed 'Best First'.
Re^2: File::Tail can not get output
by leostereo (Beadle) on Oct 11, 2015 at 01:08 UTC
    you were right .... it was working , just need to wait a little bit more or change defaults Thanks