Cron Expression
*/2 * * * *
Learn how to create a cron expression for 'cron every 2 minutes'. Runs every 2 minutes with our free cron generator tool.
Field | Value | Meaning |
---|---|---|
Minute | */2 | Every 2 minutes |
Hour | * | Any hour |
Day of Month | * | Any day |
Month | * | Any month |
Day of Week | * | Any day of the week |
This cron expression represents: cron every 2 minutes
*/2 * * * *
Runs every 2 minutes
This cron schedule is commonly used for:
crontab -e
*/2 * * * * /path/to/your/script.sh
*/2 * * * * /path/to/script.sh >> /var/log/cron.log 2>&1
*/2 * * * * /path/to/script.sh || mail -s "Cron job failed" admin@example.com