On 5 April 2012 22:07, Tudor Girba <[email protected]> wrote:
> Hi,
>
> I am looking for a way to implement a logic like in the linux tail command: 
> watch a file and react whenever a new line appears at the end of that file.
>
> Can anyone point me to some resources that I might use for something like 
> this?
>
well, best would be the source code of tail command itself.
it opens a file for reading and then polls periodically for more data.
but i don't know details

> Cheers,
> Doru
>
>
> --
> www.tudorgirba.com
>
> "When people care, great things can happen."
>
>
>
>



-- 
Best regards,
Igor Stasenko.

Reply via email to