10

Every one hour (starting from "now") I am able to schedule using this cron expression (expression) using nodejs cron-job.

But I need to set cron every one hour starting from a specific time. For example, say it starts from 3:30 am — can we do this? What will be the cron expression for this? any ideas appreciated

Devaraj C
  • 201

3 Answers3

10

I suspect that you do not mean "every hour", but "every hour of the day starting 3:30".

30 3-23 * * *

30: the minute, half past the hour
3-23: only between hours 3-23 (inclusive)
*: every day
*: every month
*: every weekday

http://www.manpagez.com/man/5/crontab/

Arjen
  • 201
1

Here's the correct way to do so:

30 * * * *

Here's a breakdown:

30: The minute, half past the hour

*: Every hour

*: Every Day

*: Every Month

*: Every Weekday

td512
  • 5,170
0

run every hour

0 *  *  *  *    root    /path/to/command

or

@hourly     root    /path/to/command

or run every hour starting at 07:00

0 7 * * *       root    /path/to/command