Alerting
Highlighted

How to create a cron expression for every 2 hours, 6am to 8pm, and everyday?

Engager

Hello guys,

Can you help me with this Cron expression?: every 2 hours, 6am to 8pm, everyday
I tried this one bellow, but it's not working.

*/120 6-20 * * *

Thanks!

cheers,

0 Karma
Highlighted

Re: How to create a cron expression for every 2 hours, 6am to 8pm, and everyday?

Legend

Hi rafasalo,
try

0 6,8,10,12,14,16,18,20 * * *

Bye.
Giuseppe

View solution in original post

Highlighted

Re: How to create a cron expression for every 2 hours, 6am to 8pm, and everyday?

Engager

Thanks! Giuseppe

0 Karma