Back to Cron Helper
Recipemonitoringnetworkcurluptime
Website Uptime Monitoring
Simple cron job to check if a website is reachable.This command sends a HEAD request to your website to check if it returns a 200 OK status. You can combine this with a conditional logic (&& or ||) to send an email or trigger an alert if the site is down.
Cron Schedule
Every 5 Minutes
Runs at minutes 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 of every hour.*/5 * * * *Command to Run
Copy and paste this command into your crontab or automation script
curl -Is https://yoursite.com | head -n 1Implementation Examples
Unix/Linux Crontab
*/5 * * * * /path/to/script.sh
Python (with schedule library)
schedule.every(5).minutes.do(job)
Node.js (with node-cron)
cron.schedule('*/5 * * * *', () => {
console.log('Running every 5 minutes');
});Go (with robfig/cron)
c.AddFunc("*/5 * * * *", func() { fmt.Println("Run every 5 mins") })GitHub Actions Workflow
- cron: "*/5 * * * *"
Related Cron Recipes
Automate PostgreSQL Backups Daily
databasepostgresbackup
Automate MySQL Backups Daily
databasemysqlbackup
Automate MongoDB Backups Daily
databasemongodbbackup
Automate Redis RDB Snapshots
databaserediscache
PostgreSQL Vacuum Analyze
databasepostgresmaintenance