Tác vụ Cron Mỗi thứ Hai
0 0 * * 1
phút
giờ
ngày (tháng)
tháng
thứ (tuần)
Vào 12:00 AM, chỉ trên Thứ 2
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 | on Monday |
Dòng crontab
0 0 * * 1 /path/to/script.shThe expression 0 0 * * 1 schedules a cron job to run mỗi thứ hai. 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.