Forum Moderators: bakedjake

Message Too Old, No Replies

tail command refreshing output automatically

tail output refresh automatically

         

rubenbla

12:05 pm on Jul 22, 2004 (gmt 0)

10+ Year Member



I kinda remember to use the tail command to display the contents of the end of a file (that is being loaded with new lines by another process) and refresh the output automatically every n seconds.

Was it a dream or is it possible?

Thanks!

jmccormac

12:36 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



tail -f filename

-s can be used to set the update interval. Remember Linux has manpages so you can always type man commandname to get help.

Regards...jmcc

rubenbla

12:53 pm on Jul 22, 2004 (gmt 0)

10+ Year Member



Thanks jmccormac:

Characters in my man pages are a little bit corrupted and I missed -f -s options.

bulldog

12:57 pm on Jul 22, 2004 (gmt 0)



You can also look at the last x number of lines;
tail -10f filename (last 10 lines)