In part 3, you learnt more about establishing programs for occupations utilizing the program check boxes. In this component, I’m planning to reveal you more chances for establishing the program.

Open the scheduler dialog box. Review part 3 for those who have forgotten to accomplish this. This time I’d like to bring your focus to the region below the check boxes for the program. There’s a text box tagged Advanced which is a drop down list followed by means of a Change button.

Let’s consider the drop down list. Click the down arrow by the end of the Advanced text box to open the list. I’ve added the list and some useful programs.

Select a program in the list, say Every Tue,Wed at 1:00pm and click the Change button. This should be changed to by the program.

What about every Monday, Friday and Wednesday at 2pm? There isn’t any item in the list that fits this. Nevertheless, you can in fact type something. Attempt every mon,wed,fri at 2:00pm and click the Change button. Be cautious using the spaces, they may be not unimportant.

Below are a few examples you are able to try yourself out.

every 10 minutes

every 3 hours at 0 minutes

every weekday at 15

every day at 9

Sunday at midnight

You get the idea. The natural language processor I created comprehends many common methods for setting the program. It is imperfect, but will normally get your job done.

Cron-like Expressions

Unix like systems employ a strong reflection for setting programs called cron expressions. I also have implemented something similar which I call cron-like sayings. They may be not a same from cron expressions, when you previously understand cron expressions, so watch out.

By setting a sequence of three parts separated with a space, you can even establish a program. The Day the primary part defines, the next part defines the next part as well as the Hour defines the Minute.

For instance, you may use the following:

0 0 0

It is a cron- . Here is what it means.

The primary element 0 stands for the Day 1 is Monday and so on.

Where 0 is midnight the next element 0 stands for the Hour, 1 is 1 am and so on for 11 pm until 23.

The next element 0 stands where 0 is 0, 1 is 5 minutes, 2 is so on and 10 minutes until 11 for 55 minutes.

Attempt these examples to make things clear. Don’t forget to click the Change button to implement your program.

Sunday 5:00 am : 0

Friday 5:30 pm: 5 17 6

Here is where thing begin becoming interesting. You can even distinguish multiple values for every element. To establish a program for each weekend at 8 this is that which you’ll be able to give.

0,6 8 0

Here are more examples to try.

Mon, Wed, Fri at 10:00 am and 6:00 pm: 1,3,5 10,18 0

Every 15 minutes on Tue, Thu at midnight: 0,3,6,9 0 2,4

You can even use a – to divide two numbers to set a range. In the Hours element, as an example, it is possible to pin down 1-5 to set 1,2,3,4,5. Here are a few examples to try out it.

Every hour on weekdays from 10 am to 5 pm: 1-5 10-17 0

Every 5 minutes on weekdays from 10 am to 5 pm: 1-5 10-17 0-11

It’s possible for you to join – with , in almost any part as numerous times as you like. Think yourself. This is just one case as a benchmark. 1-3,6 0-3,21-23 0

Strong enough? There’s more. You can even use *a in a part to mean *a /n or every potential value to mean every nth value. Below are a few examples you are able to try out.

Every 5 minutes: * * *

Every weekday every 15 minutes: 1-5 * */3

Every other day every two hours: */2 */2 0

Remember that after you click the Change button, the cron-like expression you can be cleared in the text box and define should get used. Then there’s likely something wrong using the expression should it not. The most common error I’ve experienced is attempting to place spaces in the part.

You saw more methods to establish the program. In part 5, we are going to see the rest of the Scheduler dialog box.

Leave a Reply

Your email address will not be published. Required fields are marked *