Solved

How do I view file changes as they happen

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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…
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…

786 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