How to stop or terminate a job after 02:00 AM
I want to terminate a job after running until a particular time, but I should not specify a date.
I know sendevent -E KILLJOB -J job name -T "mm/dd/yy HH:mm
, but this has a date also to be specified. But for my requirement, I don't need a date. Can someone help me how to achieve this?
Thanks,
Hema
jobs termination autosys
add a comment |
I want to terminate a job after running until a particular time, but I should not specify a date.
I know sendevent -E KILLJOB -J job name -T "mm/dd/yy HH:mm
, but this has a date also to be specified. But for my requirement, I don't need a date. Can someone help me how to achieve this?
Thanks,
Hema
jobs termination autosys
Where are you sending the event from? This might be a question for the Super User subsite if it’s more relevant to system administration.
– stealththeninja
Nov 20 '18 at 2:34
It is in autosys using a job I want to run that command
– nagahema latha
Nov 20 '18 at 3:37
add a comment |
I want to terminate a job after running until a particular time, but I should not specify a date.
I know sendevent -E KILLJOB -J job name -T "mm/dd/yy HH:mm
, but this has a date also to be specified. But for my requirement, I don't need a date. Can someone help me how to achieve this?
Thanks,
Hema
jobs termination autosys
I want to terminate a job after running until a particular time, but I should not specify a date.
I know sendevent -E KILLJOB -J job name -T "mm/dd/yy HH:mm
, but this has a date also to be specified. But for my requirement, I don't need a date. Can someone help me how to achieve this?
Thanks,
Hema
jobs termination autosys
jobs termination autosys
edited Nov 20 '18 at 8:21
RangerRanger
1,1292923
1,1292923
asked Nov 20 '18 at 2:18
nagahema lathanagahema latha
1
1
Where are you sending the event from? This might be a question for the Super User subsite if it’s more relevant to system administration.
– stealththeninja
Nov 20 '18 at 2:34
It is in autosys using a job I want to run that command
– nagahema latha
Nov 20 '18 at 3:37
add a comment |
Where are you sending the event from? This might be a question for the Super User subsite if it’s more relevant to system administration.
– stealththeninja
Nov 20 '18 at 2:34
It is in autosys using a job I want to run that command
– nagahema latha
Nov 20 '18 at 3:37
Where are you sending the event from? This might be a question for the Super User subsite if it’s more relevant to system administration.
– stealththeninja
Nov 20 '18 at 2:34
Where are you sending the event from? This might be a question for the Super User subsite if it’s more relevant to system administration.
– stealththeninja
Nov 20 '18 at 2:34
It is in autosys using a job I want to run that command
– nagahema latha
Nov 20 '18 at 3:37
It is in autosys using a job I want to run that command
– nagahema latha
Nov 20 '18 at 3:37
add a comment |
1 Answer
1
active
oldest
votes
If sendevent is being as command attribute for a CMD job type.
The owner must have access to the Autosys DB and not just to regular machine where jobs run.
Please check the machine / owner privilages to do so.
The other way through autosys attributes.
Consider the job starts at HH:mm hour of the day.
Then the minutes between HH:mm and 02:00 to be assigned for term_run_time attribute in the job.
Once the job starts, it would terminate after those minutes if not completed.
Example:
Job start time is 16:00
Between 16:00 and 02:00 there are 10 hours = 600 minutes
term_run_time: 600
This 600 minutes is relative to starting time.
In autosys there is no attribute to terminate a job at an absolute time.
Hope this helps
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53385294%2fhow-to-stop-or-terminate-a-job-after-0200-am%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If sendevent is being as command attribute for a CMD job type.
The owner must have access to the Autosys DB and not just to regular machine where jobs run.
Please check the machine / owner privilages to do so.
The other way through autosys attributes.
Consider the job starts at HH:mm hour of the day.
Then the minutes between HH:mm and 02:00 to be assigned for term_run_time attribute in the job.
Once the job starts, it would terminate after those minutes if not completed.
Example:
Job start time is 16:00
Between 16:00 and 02:00 there are 10 hours = 600 minutes
term_run_time: 600
This 600 minutes is relative to starting time.
In autosys there is no attribute to terminate a job at an absolute time.
Hope this helps
add a comment |
If sendevent is being as command attribute for a CMD job type.
The owner must have access to the Autosys DB and not just to regular machine where jobs run.
Please check the machine / owner privilages to do so.
The other way through autosys attributes.
Consider the job starts at HH:mm hour of the day.
Then the minutes between HH:mm and 02:00 to be assigned for term_run_time attribute in the job.
Once the job starts, it would terminate after those minutes if not completed.
Example:
Job start time is 16:00
Between 16:00 and 02:00 there are 10 hours = 600 minutes
term_run_time: 600
This 600 minutes is relative to starting time.
In autosys there is no attribute to terminate a job at an absolute time.
Hope this helps
add a comment |
If sendevent is being as command attribute for a CMD job type.
The owner must have access to the Autosys DB and not just to regular machine where jobs run.
Please check the machine / owner privilages to do so.
The other way through autosys attributes.
Consider the job starts at HH:mm hour of the day.
Then the minutes between HH:mm and 02:00 to be assigned for term_run_time attribute in the job.
Once the job starts, it would terminate after those minutes if not completed.
Example:
Job start time is 16:00
Between 16:00 and 02:00 there are 10 hours = 600 minutes
term_run_time: 600
This 600 minutes is relative to starting time.
In autosys there is no attribute to terminate a job at an absolute time.
Hope this helps
If sendevent is being as command attribute for a CMD job type.
The owner must have access to the Autosys DB and not just to regular machine where jobs run.
Please check the machine / owner privilages to do so.
The other way through autosys attributes.
Consider the job starts at HH:mm hour of the day.
Then the minutes between HH:mm and 02:00 to be assigned for term_run_time attribute in the job.
Once the job starts, it would terminate after those minutes if not completed.
Example:
Job start time is 16:00
Between 16:00 and 02:00 there are 10 hours = 600 minutes
term_run_time: 600
This 600 minutes is relative to starting time.
In autosys there is no attribute to terminate a job at an absolute time.
Hope this helps
answered Nov 20 '18 at 21:59
PiyushPiyush
287
287
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53385294%2fhow-to-stop-or-terminate-a-job-after-0200-am%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Where are you sending the event from? This might be a question for the Super User subsite if it’s more relevant to system administration.
– stealththeninja
Nov 20 '18 at 2:34
It is in autosys using a job I want to run that command
– nagahema latha
Nov 20 '18 at 3:37