Cronjobs

Edit crontab

crontab -e

Syntax

* * * * * command
│ │ │ │ │
│ │ │ │ └── Day of week (0-7)
│ │ │ └──── Month (1-12)
│ │ └────── Day of month (1-31)
│ └──────── Hour (0-23)
└────────── Minute (0-59)

Examples

# Every day at 3:00
0 3* * * /path/to/script.sh

# Every hour
0 * * * * php /var/www/cron.php

# Every 5 minutes
*/5* * * * /path/to/check.sh

Logs

tail -f /var/log/cron

Need help?

We're here for you! Running into issues or have questions? Our support team is happy to help you personally. Drop us a message through the ticket system - we usually respond within a few hours and love helping you find the best solution.