Re: Event scheduling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux