Cron Every 5 Minutes

Run a command every five minutes with a standard cron expression and avoid common scheduling mistakes.

Expression

*/5 * * * * /path/to/script.sh

How It Reads

Key / CodeDescription
*/5Every 5 minutes
*Every hour
*Every day of month
*Every month
*Every day of week

Common Mistake

Cron usually runs with a limited environment. Use absolute paths for scripts and commands, and redirect output to logs when debugging.

Related

Knowledge is power.