Creating user-defined task

There are a few special parameters that must be defined when you select User-defined as the task type from the Run task drop-down menu.

 

The date and time of a User-defined task has to be entered in year-extended cron format (a string comprising 6 fields separated by white space):

minute(0-59) hour(0-23) day of month(1-31) month(1-12) year(1970-2099) day of week(0-7)(Sunday = 0 or 7)

 

example

Example:

30 6 22 3 2012 4

 

The following special characters are supported in cron expressions:

asterisk (*) – expression will match for all values of the field; e.g. asterisk in the 3rd field (day of month) means every day

hyphen (-) – defines ranges; e.g. 3-9

comma (,) – separates items of a list; e.g. 1,3,7,8

slash (/) – defines increments of ranges; e.g. 3-28/5 in the 3rd field (day of month) means 3rd day of the month and then every 5 days.

 

Day names (Monday-Sunday) and month names (January-December) are not supported.

 

NOTE:

note

User defined tasks

If you define both a day of the month and day of the week, the command will only be executed when both fields match.