crontab.run

Tác vụ Cron Mỗi giờ chẵn

0 */2 * * *
phút
giờ
ngày (tháng)
tháng
thứ (tuần)

Vào 0 phút của mỗi tiếng, mỗi 2 tiếng

5 lần chạy tiếp theo

1 
2 
3 
4 
5 

Phân tích từng trường

TrườngGiá trịÝ nghĩa
phút0at minute 0
giờ*/2every 2 hours
ngày (tháng)*any value
tháng*any value
thứ (tuần)*any value

Dòng crontab

0 */2 * * * /path/to/script.sh
Mở trong trình tạo →

The expression 0 */2 * * * schedules a cron job to run mỗi giờ chẵn. This schedule belongs to the "Giờ" category and is frequently used for periodic maintenance tasks, report generation, or batch processing that runs several times throughout the day.

Ví dụ liên quan