Run a cron job 4 times per day: midnight, 6 AM, noon, 6 PM.
Add this line to your crontab (crontab -e):
# Every 6 Hours
0 */6 * * * /path/to/your/script.shAdd a curl ping to get alerted if your job fails or runs late:
# Every 6 Hours — with CronPing dead man's switch
0 */6 * * * /path/to/your/script.sh && curl -s https://cronping.anethoth.com/ping/YOUR_TOKENGet alerted instantly when a 0 */6 * * * job fails or runs late. Free for up to 3 monitors.
0 */6 * * * mean in cron?Run a cron job 4 times per day: midnight, 6 AM, noon, 6 PM. This expression follows the standard 5-field cron syntax: minute, hour, day-of-month, month, day-of-week.
Run crontab -e in your terminal and add: 0 */6 * * * /path/to/your/command. Save and exit. Use crontab -l to verify.
Check /var/log/syslog or /var/log/cron for execution logs. For reliable monitoring, use CronPing — it alerts you when a job misses its expected schedule.
Cron uses the system timezone by default. Check with timedatectl or set TZ=UTC in your crontab for consistency across servers.