Run job every 20 minutes except between 2 and 4am

Everything about Control-M Enterprise Manager Server installation or setup.
Post Reply
User avatar
rombapa
Nouveau
Nouveau
Posts: 24
Joined: 28 Jun 2011 12:00

Run job every 20 minutes except between 2 and 4am

Post by rombapa » 24 Jan 2012 12:32

Hi all,

I'd like to know if it is possible to define a cyclic job that stops running during a defined time interval. For exemple run every 20 minutes except between 2 and 4 AM. In crontab that would look like this:

Code: Select all

00, 20, 40 0-2, 4-23 * * * myjob.sh
Regards.

User avatar
gglau
Nouveau
Nouveau
Posts: 317
Joined: 13 Jun 2007 12:00

Post by gglau » 24 Jan 2012 11:33

cyclic every 20 minutes from target

time from = 0400
time until = 0200

User avatar
rombapa
Nouveau
Nouveau
Posts: 24
Joined: 28 Jun 2011 12:00

Post by rombapa » 25 Jan 2012 9:00

oh my do i feel stupid now ! :)

thanks gglau!

steve_r

Post by steve_r » 31 Jan 2012 2:56

If this is a daily job,unless your newday is between 02:00 and 04:00 you may also need to have a Maxwait of 1 and maximum number of iterations/a lock condition to prevent two instances from running at the same time. (Comments based on 6.3 version.)

User avatar
bujji
Nouveau
Nouveau
Posts: 2
Joined: 31 Jan 2013 12:00

Post by bujji » 01 Feb 2013 3:42

It depends on newday timing as well. Copy the same job and put in the same table with the different scheduling criteria.

For Eg if the newday happens at 8:00 system time in 24hour clock you can set it like this.

From 0800 UNTIL 0200 From target Every 20 minutes
From 0400 UNTIL 0759 From target Every 20 minutes

User avatar
lucyming
Nouveau
Nouveau
Posts: 3
Joined: 29 Apr 2013 12:00

Post by lucyming » 29 Apr 2013 10:39

i feel stupid now !


__________________________________________________
Diablo 3 Gold;Aion Kinah;Diablo 3 Gold Kaufen;Guild Wars 2 Gold

Post Reply