Cron Every 4 Hours
Expression Breakdown
Minute
(0-59)
(0-59)
Hour
(0-23)
(0-23)
Day
(1-31)
(1-31)
Month
(1-12)
(1-12)
Weekday
(0-6)
(0-6)
| Field | Value | Meaning |
|---|---|---|
| Minute | At minute | |
| Hour | At hour | |
| Day of Month | Day | |
| Month | Month | |
| Day of Week |
title: ‘Cron Expression: Cron Every 4 Hours’
description: Learn how to create a cron expression for ‘cron every 4 hours’. Runs
every 4 hours with our free cron generator tool.
keywords: cron every 4 hours, cron expression, cron job, linux cron, unix cron, cron
syntax
cron_expression: 0 */4 * * *
search_keyword: cron every 4 hours
search_volume: 100
search_rank: 13
example_name: cron every 4 hours
permalink: “/tools/cron-generator/examples/cron-every-4-hours/”
related_expressions:
- keyword: cron job every 4 hours
url: “/tools/cron-generator/examples/cron-every-4-hours/” - keyword: cron schedule every 4 hours
url: “/tools/cron-generator/examples/cron-schedule-every-4-hours/” - keyword: cron expression for every 4 hours
url: “/tools/cron-generator/examples/cron-expression-for-every-4-hours/”
—
This cron expression represents: cron every 4 hours
Cron Expression
0 */4 * * *
What This Expression Does
Runs every 4 hours
Use Cases
This cron schedule is commonly used for:
- System health monitoring
- Report generation
- Database maintenance
- Cache refresh
How to Use
- Copy the cron expression above
- Open your crontab with
crontab -e - Add a new line with:
0 */4 * * * /path/to/your/script.sh - Save and exit
Alternative Formats
-
With logging:
0 */4 * * * /path/to/script.sh >> /var/log/cron.log 2>&1 -
With email notification:
0 */4 * * * /path/to/script.sh || mail -s "Cron job failed" admin@example.com