[CentOS] Event scheduling

Fri Feb 16 17:14:47 UTC 2007
Stephen Harris <lists at spuddy.org>

On Fri, Feb 16, 2007 at 09:48:45AM -0600, Frank M. Ramaekers wrote:
> Sure I understand that, but If I wanted it to be within 15 seconds
> response, I'd have to check 4times x 60 seconds x 60 minutes x 24 hours
> per day.  Kind of a waste for a file that may or may not be transmitted
> each day.
> 
> I was thinking that perhaps there was something that would monitor the
> SYSLOG and could trigger jobs (scripts) based on a syslog entry.

You mean...

  tail -f messages | grep "line.i.want" | while read line
  do
    something $line
  done

Be careful with log rotation.

-- 

rgds
Stephen