Re: cron script hangs after a while (seems to)
From: Kevin Rodgers (ihs_4664_at_yahoo.com)
Date: Fri, 07 Jan 2005 09:17:43 -0700
Nick Sinclair wrote:
> I have this package of scripts that act as a 'bot' running on an
> 'ACID/SNORT/MySQL' installation. Basically, every 2 mins Cron runs 3 of
> these scripts from my package, which do the following respectively.
> 1. Extract ip addresses from MySQL and create/update 'flat files'
> my package.
> 2. Read in ip addresses from these 'flat files' and then, if there
> new addresses since the last run, add rules to block the /24 address in
> 3. Create an html page from the log created by the previous script.
> When I come into the office some mornings, and check the 'flat
> file' and 'html page', the script seems to have stopped working at some
> point. These times are random, and don't coincide with any other tasks.
Are you sure the 3-script sequence completes within its 2-minute window
every single time? If it doesn't, could that cause the symptoms you're
-- Kevin Rodgers