?
Solved

How do I view file changes as they happen

Posted on 2002-04-25
2
Medium Priority
?
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 400 total points
ID: 6968348
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
ID: 6968359
Thanks jlevie
I'm going to have to study those command line options more carefully.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses

770 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