[Gllug] Cron?

Alain Williams addw at phcomp.co.uk
Thu Oct 24 11:13:45 UTC 2002


On Thu, Oct 24, 2002 at 12:08:58PM +0100, Paul Roberts wrote:
> Neil Fryer <neil.fryer at 12snap.com> writes:
> 
> > If I want to run a task every 2 minutes, how can I make sure that the same
> > task run previously finishes before the next one starts?
> 
> You could make the script that performs your task create a temporary
> file when it starts, then delete it when its finished.
> 
> Then, at the beginning of the script, you could just loop while that
> file exists.

If it is run every 2 minutes - just exit -- like the busses: ``there will be another one along soon''.

-- 
Alain Williams

#include <std_disclaimer.h>

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list