[lug] Crontab

Eric Kilfoil ekilfoil at viawest.net
Fri Jun 22 10:07:54 MDT 2001


if your script runs in a very short amount of time (like under a second),
then you can do this:

#!/bin/bash
CTR=0
while [ "$CTR" -lt 3 ] ; do
  echo "do stuff"
  sleep 1
  CTR=$[$CTR+1]
done

Then set up cron to run this every minute.

eric

On Fri, 22 Jun 2001, Carlos [iso-8859-1] Hernández López wrote:

>
> Hello,
>
> For some aplication,  I need to execute several bash scripts
> periodically during a specific lapse of time. Crontab would be perfect,
> however the minimum period of time that you can specify is 1 minute,
> and  I need to execute the scripts maybe every 15 seconds.
>
> Obviously  I can manage in order that the scripts "knows" when to
> execute but I don't want to reinvent the wheel and something  similar to
> contab would be nicer.
>
> Some hints?
>
> Thanks a lot.
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>




More information about the LUG mailing list