 |
|
Oracle Tips by Burleson |
Display active writes to a
file
Better yet, you may want to follow the messages written to an
active file as they are written. Perhaps, for example, your
application is compressing and copying files to an alternate
location, writing messages to a log file called message.log as it
processes each file. Curious as you are, you want to observe the
progress of the application.
You could use the tail command with the –f (follow) option to
read the messages as they are written to the log. The following
example assumes that your current working directory is the
same directory where the log file resides.
tail -f message.log
A clever Linux user can also use the less command to display
the beginning lines of a file, the ending lines of a file, or to
follow active writes to a file like tail –f does. Please see the
man entry for the less command to see how this is done.
The above book excerpt is from:
Easy Linux
Commands
Working Examples of Linux Command Syntax
ISBN:
0-9759135-0-6
Terry Clark
http://www.rampant-books.com/book_2005_1_linux_commands.htm |