งาน Cron ทุกปี
0 0 1 1 *
นาที
ชั่วโมง
วัน (เดือน)
เดือน
วัน (สัปดาห์)
เมื่อ 12:00 AM, ในวัน 1 ของเดือน, เท่านั้น มกราคม
รายละเอียดฟิลด์
| ฟิลด์ | ค่า | ความหมาย |
|---|---|---|
| นาที | 0 | at minute 0 |
| ชั่วโมง | 0 | at hour 0:00 |
| วัน (เดือน) | 1 | on day 1 of the month |
| เดือน | 1 | in January |
| วัน (สัปดาห์) | * | any value |
บรรทัด crontab
0 0 1 1 * /path/to/script.shThe expression 0 0 1 1 * 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.