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