[CentOS] Event scheduling
John Summerfield
debian at herakles.homelinux.org
Fri Feb 16 22:23:21 UTC 2007
Stephen Harris wrote:
> 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.
>
Look for the pop-before-smtp package (It's in Debian, I don't recall
where it came from). It's Perl, it monitors the log and copes with log
rotation, and could be adapted to your task.
However, that ftp daemon looks good. This wouldn't be good to run in
virtual machines either.
--
Cheers
John
-- spambait
1aaaaaaa at coco.merseine.nu Z1aaaaaaa at coco.merseine.nu
Please do not reply off-list
More information about the CentOS
mailing list