Re: cron script hangs after a while (seems to)

From: Kevin Rodgers (
Date: 01/07/05

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'
common to
> my package.
> 2. Read in ip addresses from these 'flat files' and then, if there
are any
> new addresses since the last run, add rules to block the /24 address in
> iptables
> 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
files', 'log
> 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