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.shHow It Reads
| Key / Code | Description |
|---|---|
| */5 | Every 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.