The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 10-27-2008
h3llh0l3 h3llh0l3 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 9
Quote:
Originally Posted by Tytalus View Post
you could tail -f the log and parse that through the script.

Should work....alternative method is to remeber where you got to in the file (line count) and then run your script at intervals starting where you left off - just be careful handling logrotates
If I tail -f the log and parse it through the script when a new line is added to the log the script exits.
I haven't tried the alternative step yet as I am not familiar with logrotates.
Would there be any other way to do this?

Thanks.