Tác vụ Cron Mỗi ngày trong tuần
0 0 * * 1-5
phút
giờ
ngày (tháng)
tháng
thứ (tuần)
Vào 12:00 AM, Thứ 2 đến Thứ 6
Phân tích từng trường
| Trường | Giá trị | Ý nghĩa |
|---|---|---|
| phút | 0 | at minute 0 |
| giờ | 0 | at hour 0:00 |
| ngày (tháng) | * | any value |
| tháng | * | any value |
| thứ (tuần) | 1-5 | from 1 through 5 |
Dòng crontab
0 0 * * 1-5 /path/to/script.shThe expression 0 0 * * 1-5 schedules a cron job to run mỗi ngày trong tuần. This schedule belongs to the "Ngày" category and is a popular choice for daily maintenance routines, backup operations, or recurring tasks tied to specific days of the week.