cron express for every hour

2024-07-31by@tim&@ChatGPT.Model: GPT-4o
tim

cron express for every hour

Avatar
Avatar

A cron expression is used to schedule jobs in Unix-based operating systems. If you want to run a job every hour, you can use the following cron expression:

0 * * * *

Here's what each part of the expression means:

  • 0 (minute) - The job will start at the 0th minute of the hour.
  • * (hour) - The job will run every hour.
  • * (day of the month) - The job will run every day of the month.
  • * (month) - The job will run every month.
  • * (day of the week) - The job will run every day of the week.

So, this cron expression will trigger the job at the start of every hour. For example, it will run at 1:00, 2:00, 3:00, and so on.