Solved

How do I view file changes as they happen

Posted on 2002-04-25
2
223 Views
Last Modified: 2010-04-21
Hello all

I wonder if someone could help. I am interested in echoing the contents of a log file to my screen, and to be able to see any additional information added to the file, being added to my screen simultaneously.
I am not in control of the process which is writing to the log file.
Also can you do the same thing with a screen, so view data on one screen as it scrolls up on another.
I am using HPUX 11

Thanks

Richard
0
Comment
Question by:richardmoz
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 100 total points
Comment Utility
Watching for new data as it is added to a file is pretty easy, just use 'tail -f some-log'. For your second question, yes if your are using X you can have the same file visible in two terminal windows. You could do 'more some-log' in one window and 'tail -f' in another.
0
 

Author Comment

by:richardmoz
Comment Utility
Thanks jlevie
I'm going to have to study those command line options more carefully.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now