งาน Cron ทุก 4 ชั่วโมง
0 */4 * * *
นาที
ชั่วโมง
วัน (เดือน)
เดือน
วัน (สัปดาห์)
เมื่อ 0 นาที ชั่วโมงที่ผ่านมา, ทุกๆ 4 ชั่วโมง
รายละเอียดฟิลด์
| ฟิลด์ | ค่า | ความหมาย |
|---|---|---|
| นาที | 0 | at minute 0 |
| ชั่วโมง | */4 | every 4 hours |
| วัน (เดือน) | * | any value |
| เดือน | * | any value |
| วัน (สัปดาห์) | * | any value |
บรรทัด crontab
0 */4 * * * /path/to/script.shThe expression 0 */4 * * * schedules a cron job to run ทุก 4 ชั่วโมง. 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.