[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-gnubatch] How do I repeat through a range of times?
From: |
Reuti |
Subject: |
Re: [help-gnubatch] How do I repeat through a range of times? |
Date: |
Thu, 9 Feb 2012 23:42:51 +0100 |
Hi,
Am 09.02.2012 um 22:14 schrieb Wechsler, Steven:
> I want to run a job every day, every 10 minutes between 0:00 and 7:50, then
> again between 20:00 and 23:50. In cron it looks like this:
>
> */10 0-7,20-23 * * * /opt/mysql/instance/local/bin/runscript
One option could be to turn a flag on and off at specific times like:
gbch-r -r Days:1 -T 19:59 -f S -s trigger=1 empty.sh
gbch-r -r Days:1 -T 23:51 -f S -s trigger=0 empty.sh
gbch-r -r Minutes:10 -c trigger=1 -T 0:00 -S
/opt/mysql/instance/local/bin/runscript
If you have a sleep script, the two settings could be combined to:
gbch-r -r Days:1 -T 19:59 -s trigger=1 sleep14400.sh
-- Reuti
> Thanks,
>
> Steve
>
> Steve Wechsler
> Senior Database Administrator
> Viacom Media Networks
> +212 846 5683
>