How to start a Job at a specific time

All questions about Control-M jobs definitions
Post Reply
User avatar
tommi-b
Nouveau
Nouveau
Posts: 9
Joined: 13 Nov 2007 12:00
Contact:

How to start a Job at a specific time

Post by tommi-b » 29 Nov 2007 12:52

Hi,
i am new at Control-M and want to know how i can start a Job at a specific time?

Some of our Applications have to start and stop at a specific time. We have Statements to do that. So what we want to do is:
i.e.
at 7:00 start Job
at 18:00 stop Job

or
at 23:00 stop Job and 1 minute later restart the Job

In the doc i have only found to start a Job from...until (submit between.... to)

Regards
Thomas

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

Post by gglau » 30 Nov 2007 12:22

There is no direct way to stop a job. You can shout to a script at a specific time for the scrip to kill the job. Search this forum for an example script.

To retart the job 1 minute after it is killed, set the job to be cyclic and cyclic interval 1 minute from end. Make sure run count is 2 to allow the job to repeat once. Keep in mind the second run cannot be killed by the above mechanism.

User avatar
tommi-b
Nouveau
Nouveau
Posts: 9
Joined: 13 Nov 2007 12:00
Contact:

Post by tommi-b » 30 Nov 2007 12:49

Sorry, you missunderstood me.

Each Job runs a script to start a part of our system or to stop a part of our system.
I have to perform the Start-Job at 7.00 and not from 7:00 untio 7:05 or so
the Stop-Job have to run at 20:30 an not from 20:30 until 20:35

Another part has to be restartet at 5:00
so o must run a Stop-job at 5:00 and a start-job at 5:01

So, how do i have to configure this Job?

The runtime of the Start-job / stop-job is < 1 min


Thomas

Post Reply