งาน Cron สัปดาห์ละครั้ง
0 0 * * 0
นาที
ชั่วโมง
วัน (เดือน)
เดือน
วัน (สัปดาห์)
เมื่อ 12:00 AM, เท่านั้น วันอาทิตย์
รายละเอียดฟิลด์
| ฟิลด์ | ค่า | ความหมาย |
|---|---|---|
| นาที | 0 | at minute 0 |
| ชั่วโมง | 0 | at hour 0:00 |
| วัน (เดือน) | * | any value |
| เดือน | * | any value |
| วัน (สัปดาห์) | 0 | on Sunday |
บรรทัด crontab
0 0 * * 0 /path/to/script.shThe expression 0 0 * * 0 schedules a cron job to run สัปดาห์ละครั้ง. This is a commonly referenced cron schedule used for periodic tasks such as maintenance, cleanup, reporting, or automated workflows that run on a regular cadence.