On Thu, Apr 27, 2000 at 06:27:13PM +0300, Raider wrote:
> On "Re: And something about less" [EMAIL PROTECTED] said on Apr 27:
> > Not unable.  Just unwilling.  Once less has reached an end of file, that
> > is it.  Refreshing the screen doesn't get any more stuff to put on it,
> > It isn't the screen that is stale, but less's knowledge of the file.
> > If you want less to not believe an end of file and keep closing and
> > reopening the file to see if it has changed, give it the F
> > command.  Then you do not need to efresh the screen.
> 
>       It's strange that unwillingness.  I mean it can reach the EOF
> when the file is non-zero lenght.  And it will work just fine.
>       I nerver tested this with the "f" command.  But I don't really
> like that.  That way I get a bigger and slower "tail -f".  I need that
> flexibility less offers.  I mean I browse, I reread the file with ^R,
> than browse again.  It's neat and it's extremely fast - the way I like
> it.
>       I just feel bad because I was hoping less doesn't have any
> problems after all that development.  Guess I was wrong.

I went back and reread this thread to try and make sure what was
going on.  And after doing some testing, it appears to me that Lawson's
reply tells you how to do exactly what you are requesting.  Here's
what I did to test it out:
1) create a zero length file - test.txt
2) Open three xterms
      xterm 1 - used for commands
      xterm 2 - less test.txt
      xterm 3 - tail -f test.txt
3) In xterm 1 started doing:
    HAL9000:~$ echo "testing 1 2 3" >> test.txt
    HAL9000:~$ echo "testing 1 2 3 4" >> test.txt
    HAL9000:~$ echo "testing 1 2 3 4 5" >> test.txt
   over and over again
4) In xterm 3 I could see each line being added, with
     (currently) nothing happening in xterm 2
5) In xterm 2 I pressed the F (note the case) key and
     saw that less was now giving realtime update in
     the same manner that tail -f was doing
6) Did:
    HAL9000:~$ echo "testing 1 2 3" >> test.txt
    HAL9000:~$ echo "testing 1 2 3 4" >> test.txt
    HAL9000:~$ echo "testing 1 2 3 4 5" >> test.txt
   a bunch more
7) Hit CTRL-c in xterm 2 to cancel the F I had pressed earlier,
      and watched as less went back to its "regular" (i.e.
      non-realtime and fully browseable) behavior.
8) Tried going back and forth between raltime and non-realtime
      using F and CTRL-c to make sure - that worked just fine.

One thing I just have to ask about - you say you never tried the
command suggested by Lawson, but then you say you don't like it.
I just don't understand that.  How can you say you don't like
something you haven't even tried, especially when it appears to
be *exactly* what you were asking about?

As near as I can tell less has no problems doing what you're asking.
-- 
Mike Werner  KA8YSD           |  "Where do you want to go today?"
ICQ# 12934898                 |  "As far from Redmond as possible!"
'91 GS500E                    |
Morgantown WV                 |  Only dead fish go with the flow.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to