Alternative to CRON time scheduling schema? - cron

I'm looking for time schedule schemas other than cron, I mean is there another standard for schedule than e.g. "0 0 0/1 1/1 * ? *" which is in cron?
I know cron is a well experienced solution, but I'm looking for other approaches of storing dates and periods.

Related

How to combine 2 different cron expressions?

i need to schedule a process on UiPath Orchestrator. The process should triggered at 9AM, 10.30AM, 12PM, 14PM, 15PM and 16PM in weekdays.
If there was no 10.30AM i could apply the schedule in one cron expression.
But now, i can only cover this issue with 2 cron expressions.
How to i combine this two cron expressions as one.
0 0 9,12,14,15,16 ? * MON-FRI *
0 30 10 ? * MON-FRI *
Unfortunately there is no way to combine two Cron-Expressions under one command.
Alternatively, what you can do is to create two Schedules for the same Process one per your expressions. Check image below:
Keep in mind that you need to set different names as each Schedule name needs to be unique
Hope these information would be useful.

Cron Job Scheduling Different Dates of different month

Is there any way to schedule the CRON job for different days of different months!
For Example:
I need to schedule the job from February 25 to March 10 2017.this can be done by creating 2 jobs as
"0/1 * 25-28 2 2017 /cronjob.sh" and
"0/1 * 1-10 3 2017 /cronjob.sh"
But, cant I do it in one job? is there any way to do that!
No, you can't easily do this with just one cronjob.
You could, if you combine cron with some other scheduler, as in 0 * * * * otherScheduler && /cronjob.sh. But that's more complicated than simply two cronjobs.
You also could do this by changing the date on your server such that the cron schedule is from February 15 to 28. But that would be confusing and only useful if your server doesn't need to run anything else.

run cron job within a specific time range

How do i run a cron job everyday from 8:30 pm to 5:30 am(next day) during working hours at the interval of 1 hour. i tried everything from google but no thread meet my requirement due to time range including two days.
i believe this cron expression works: 0 30 0,1,2,3,4,5,20,21,22,23 1/1 * ? *
Use two crontab entries: one for 8:30pm-midnight, and one from 0030 to 0530.

Cron Expression for running a job at different intervals at different hours

I want to schedule a job to run every 5 mins during morning (4-8)AM and evening (7-11)PM and rest of the day every 30 minutes, how can i write a cron expression for it?
I can do this by using two cron expressions for scheduling, but can i do the task using one expression?
No, I believe you'll need 2 separate CRON expressions.
The timings (or intensity) are different, so you need different expressions.
So something like the following is needed:
*/5 4-7,19-22 * * * your/command
*/30 0-3,8-18,23 * * * your/command

How to let cron run in two separate time frames on the same day?

I tried to add a cron in Jenkins and do let the job run only from 12am - 4am and 2pm -12am.
My gut feeling is it should be something like(minutes is not a big concern to me)
0 14-4 * * *
But this throws me an error. I searched around but didn't find a good answer for this. Is this something related to the jenkins i'm using? how can I work it around?
Thank you
If you do:
0 00-04,12-14 * * *
your job will run every hour in these ranges: on midnight, 1am, 2am.. 4am. And then again on 12pm, 1pm and 2pm.

Resources