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