Quote:
Originally Posted by Tytalus
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.