[Gllug] Cron?

Paul Roberts sakar at stelo.uklinux.net
Thu Oct 24 11:08:58 UTC 2002


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.

Just an idea, anyway.

- Paul


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




More information about the GLLUG mailing list