Search code examples
javacronquartz-schedulercronexpression

Cron expression for a particular date


I want a cron expression that run at 9:25 am, 13:25 pm, 14:55 pm everyday. I have tried many ways, but failed.

Can someone help me please?


Solution

  • You could achieve this by creating separate cron job lines for each specific time.

    In crontab this would look like:

    25 9 * * * your_command >/dev/null 2>&1
    25 13 * * * your_command >/dev/null 2>&1
    55 14 * * * your_command >/dev/null 2>&1