All Cron Schedules
Cron Every 2 Minutes
Run a cron job every 2 minutes:
*/2 * * * *
Understanding the Expression
The cron expression */2 * * * * breaks down as follows:
| Field | Value | Meaning |
|---|---|---|
| Minute | */2 | Every 2 minutes |
| Hour | * | Every hour |
| Day of month | * | Every day of the month |
| Month | * | Every month |
| Day of week | * | Every day of the week |
Example Usage
Basic crontab entry
*/2 * * * * /path/to/your/script.sh
With output logging
*/2 * * * * /path/to/script.sh >> /var/log/script.log 2>&1
With monitoring
*/2 * * * * /path/to/script.sh && curl -fsS https://cronsignal.io/ping/YOUR_CHECK_ID
Common Use Cases for Every 2 Minutes
- Real-time monitoring: Check system health and service availability
- Queue processing: Process background job queues frequently
- Cache warming: Keep caches fresh with regular updates
- Metrics collection: Gather application and infrastructure metrics
Monitor this schedule
Get alerted when your cron job doesn't run.
Start Monitoring Free3 checks free. No credit card required.