[lug] Crontab
Eric Kilfoil
ekilfoil at viawest.net
Fri Jun 22 10:08:35 MDT 2001
hrmmm.. that should be sleep 15.... not sleep 1 :)
eric
On Fri, 22 Jun 2001, Eric Kilfoil wrote:
>
> 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