Re: tail -f | less



Sam wrote:
CptDondo writes:

I'm looking for ideas on how to implement a tail -f | less type of thing...

I need to display a logfile as it's being dumped, and give the user the ability to pause and scroll back. The data needs not be kept but can be dumped into a ring buffer. Nothing more.

And "tail -f | less" doesn't work in exactly what way?

There's some buffering issues here, but they can be solved, with a bit of effort.


Well, I am using the busybox version of less, which is more like 'more'...

And it's those buffering issues I need to solve, yes.

Hey, I was hoping to save a bit of that 'bit of effort'... :-)

--Yan
.



Relevant Pages

  • Re: tail -f | less
    ... I need to display a logfile as it's being dumped, and give the user the ability to pause and scroll back. ... The data needs not be kept but can be dumped into a ring buffer. ...
    (comp.os.linux.misc)
  • Re: How to pause/resume playing from within my source filter?
    ... The graph manager cues the graph by pausing. ... Generally, filters except ... transition to pause to be complete, ... a "buffering" UI indicator). ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Print question
    ... unbuffer output, so it appears immediately, rather than a line at a time. ... You'd think this would print one letter at a time, with a pause in between - ... The FAQ I mentioned addresses the buffering question. ...
    (comp.lang.perl.misc)
  • Re: How to stop Media Center from buffering live TV for 30 minutes
    ... >How do I stop Media Center from buffering for 30 minutes a live TV picture. ... >I do not want to rewind or pause the picture, so there is no need to buffer. ...
    (microsoft.public.windows.mediacenter)
  • Re: How to pause/resume playing from within my source filter?
    ... pause the graph and wait for the pause to complete. ... This means handling the GetState method correctly. ... Then if the filter is still paused and not ready, ... click play, displays buffering status, then starts playing after a bit) except ...
    (microsoft.public.win32.programmer.directx.video)

Loading