Cron Expression syntax required

77 Views Asked by At

I want a cron expression which should run every minute between 1pm to 1.30pm everyday.

Can anyone provide me with the syntax.

24 0/1 13-13:30 ? * * somehow doesn't work. Is it possible to include such range in cron.

Thanks

2

There are 2 best solutions below

3
Brian Agnew On

I would try:

0-30 13 * * * /my/command

The first field specifies the minutes (a range from 0 to 30, inclusive). The second is the hour. The remainder specify the day of month, month and day of week.

See here for more info and some caveats re. what's supported

1
P.K.Hindustani On

use this expression- 0 0-30 13 * * ?