in reply to Re: Monitoring a file which is constantly being written to.
in thread Monitoring a file which is constantly being written to.

Thanks for your reply.

Almost as soon as i clicked "submit" on this post i thought of the tail approach, however i would be suprised if there is not a module which can handle this more efficiantly than i can write?

- Neil
  • Comment on Re: Re: Monitoring a file which is constantly being written to.

Replies are listed 'Best First'.
Re: Re: Re: Monitoring a file which is constantly being written to.
by BrowserUk (Patriarch) on Jun 20, 2003 at 03:43 UTC

    You could take a look at File::Tail.

    I doubt that it is much more efficient than chips seek approach as it uses that same method, but a quick browse of the source shows that it does a lot more besides.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller


Re: Re: Re: Monitoring a file which is constantly being written to.
by devslashneil (Friar) on Jun 20, 2003 at 03:41 UTC
    "File::Tail - Perl extension for reading from continously updated files"

    This should do nicely ;)

    - Neil