Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to schedule a job which would run on alternate mondays?

I need to schedule a job which would run only on alternate mondays of a month?
Can anybody tell me how can i go ahead with such scheduling?

0 votes



One answer

Permanent link
I need to schedule a job which would run only on alternate mondays of a month?
Can anybody tell me how can i go ahead with such scheduling?


Hi,

The schedule page has the syntax and functioning very similar to Unix cron. In that sense, its support for every other is not that great. I would recommend putting a project on a schedule for every Monday. In that project set on the schedule, in the first step set the 'Inline' to your original project. I would then switch the 'Step Type' to 'Conditional'. In the 'Condition', it could check whether a marker file exists. If it doesn't exist, then in the 'Command' create the marker file and the inline will run. If the file does exist, then in the 'Else Command' delete the file so that next week the file will get created and the inline will run. You might have to switch around the if/else for easier syntax, but the general idea would be the same. You can run operating system commands in the 'Condition' field by putting them between backticks (ex. `ls -l marker_file`).

Brent

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 11 '11, 1:17 p.m.

Question was seen: 8,172 times

Last updated: Nov 11 '11, 1:17 p.m.

Confirmation Cancel Confirm