งาน Cron ทุก 12 ชั่วโมง
0 */12 * * *
นาที
ชั่วโมง
วัน (เดือน)
เดือน
วัน (สัปดาห์)
เมื่อ 0 นาที ชั่วโมงที่ผ่านมา, ทุกๆ 12 ชั่วโมง
รายละเอียดฟิลด์
| ฟิลด์ | ค่า | ความหมาย |
|---|---|---|
| นาที | 0 | at minute 0 |
| ชั่วโมง | */12 | every 12 hours |
| วัน (เดือน) | * | any value |
| เดือน | * | any value |
| วัน (สัปดาห์) | * | any value |
บรรทัด crontab
0 */12 * * * /path/to/script.shThe expression 0 */12 * * * schedules a cron job to run ทุก 12 ชั่วโมง. This schedule belongs to the "ชั่วโมง" category and is frequently used for periodic maintenance tasks, report generation, or batch processing that runs several times throughout the day.