I have a cron expression, which is somewhat different from the expressions I have worked before, specially because of the ?
operator( i don't know why it has been used)
following is the format that i have been refering to as the standard format. but the expression i have given after this standard format is not following this structure. could anybody help me to understand this new format. thanks in advance for any help.
* * * * * command to be executed
- - - - -
| | | | |
| | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
| | | ------- Month (1 - 12)
| | --------- Day of month (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)
expression :
0 15 15 ? * 1-7
Ok guys, i found the solution, it is actually scheduling using java quartz scheduler.
this is how it get 6 parameters in the expression
my expression :
0 15 15 ? * 1-7
The
'?'
character is allowed for the day-of-month and day-of-week fields. It is used to specify "no specific value". This is useful when you need to specify something in one of the two fields, but not the other. See the examples below (and CronTrigger JavaDoc) for clarification.you can use this to verify your cron expressions http://www.cronmaker.com/