Re: Watch contents of log-file - why doesn't it work?



"tail -f file" only lists the last part of the file and not the
beginning?

I want to see the beginning and then in the end continous output
should be added.... "tail -f" doesn't completely do that?

Open the file with less, read to the end then hit F

F Scroll forward, and keep trying to read when the end of file
is
reached. Normally this command would be used when
already at
the end of the file. It is a way to monitor the tail of a
file
which is growing while it is being viewed. (The
behavior is
similar to the "tail -f" command.)


Cheers
.



Relevant Pages

  • Re: [SLE] The "cp" command is skipping files/dirs over nfs
    ... you can capture any output to a file. ... The best way I can think of for seeing it also, is to tail the capture file. ... To be able to see the stuff as it is written to the file, call the command (on ... On Wednesday 19 April 2006 10:59 am, James D. Parra wrote: ...
    (SuSE)
  • Re: Best way to track contents of a text file
    ... user tries to run the "tail" command on it, the command prints an error ... Create a tool that can run the "tail" ... tail in one array element. ...
    (comp.sys.mac.programmer.help)
  • RE: reading from a file
    ... sub process_command { ... You may try the Unix 'tail' command and pipe the result to your Perl ... Any opinion expressed in this e-mail is personal to the sender ...
    (perl.beginners)
  • Re: perl like tail -f
    ... I'm not sure what it is about the tail -f command that allows it to ... keep reading over restarts of system logger... ...
    (perl.beginners)
  • Re: Wait line, execute and finish
    ... I want a unix command that: ... executes a command- ... tail -f foo.log | (read; mycommand) ...
    (comp.unix.shell)