Re: Monitor log file thru shell script
Date: Tue, 08 Jul 2008 18:00:44 -0600
Good idea and v2 of my own log-checker script was in perl as well and used a similar scheme (though I made everything appear in a single file--I don't like dependencies). Unfortunately, that required knowledge of perl, so I avoided it for this response.
Great minds think alike! :)
sol beach wrote:
> I do not trust grep "whatever error strings" alert_SID.log; because
> new errors may be not reported to me.
> I wrote a simple PERL program to report all/any lines not contained in
> an "ignore file".
> It runs via cron every 5 minutes & starts reporting from the timestamp
> where it last ended.