1
Post New Requests Here / Re: Idea - Return *new* lines from a text file (w/ example)
« on: July 15, 2010, 12:47 AM »
Most tail implementations I've seen can also show just the last N bytes.
So save the current file size, then when you want to display the difference, subtract the old size from the current one and display just that count of bytes using tail?
If you need to roll the log file, just reset the saved size to 0.
Is there any reason this won't work?
So save the current file size, then when you want to display the difference, subtract the old size from the current one and display just that count of bytes using tail?
If you need to roll the log file, just reset the saved size to 0.
Is there any reason this won't work?