Solved

How do I view file changes as they happen

Posted on 2002-04-25
2
229 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 100 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

729 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