Solved

How do I view file changes as they happen

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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.

896 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

14 Experts available now in Live!

Get 1:1 Help Now