help-gnubatch
[Top][All Lists]
Advanced

[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: Wechsler, Steven
Subject: Re: [help-gnubatch] How do I repeat through a range of times?
Date: Fri, 10 Feb 2012 14:33:25 +0000

Presumably I could also have two gbch-var jobs, one enabling at the beginning 
of the time, and one disabling at the end (this might be more straightforward 
even though one more job would be required).

I was hoping there'd be a way to schedule it directly without the assistance of 
additional jobs.

Thanks,

Steve

-----Original Message-----
From: Reuti [mailto:address@hidden 
Sent: Thursday, February 09, 2012 5:43 PM
To: Wechsler, Steven
Cc: address@hidden
Subject: Re: [help-gnubatch] How do I repeat through a range of times?


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]