Run a cron every minute but only during the 9 AM hour with * 9 * * *.
The expression * 9 * * * runs every minute from 9:00 to 9:59 AM. The minute field is wildcard (*) and the hour field is fixed at 9. This cron expression follows the standard 5-field format: minute (0-59), hour (0-23), day of month (1-31), month (1-12), day of week (0-6). Each field can use wildcards (*), ranges (N-M), lists (N,M), or steps (*/N). Add this expression to your crontab by running crontab -e and inserting a new line with the expression followed by the full path to your script.
The expression * 9 * * * means: at minute *, hour 9, day-of-month *, month *, day-of-week *. Each field in the cron expression controls a different time component: minute, hour, day of month, month, and day of week.
Run crontab -e in your terminal to open your crontab editor. Add a new line: * 9 * * * /path/to/your/script.sh. Save and exit. Verify with crontab -l. Make sure your script is executable (chmod +x script.sh) and uses full paths for all commands.
Quartz Scheduler: 0 9 * * ?. AWS EventBridge: cron(* 9 ? * * *). Kubernetes CronJob: schedule: "* 9 * * *" (standard 5-field format). Each platform has slight syntax differences — use our dialect switcher above to get the exact expression.
Common pitfalls: (1) Cron uses a minimal PATH — always use full paths to commands and scripts. (2) Percent signs (%) must be escaped with backslash in crontab. (3) Cron runs in the system timezone — set CRON_TZ=UTC at the top of your crontab for consistent UTC scheduling. (4) Redirect output to prevent email spam: * 9 * * * /path/command >> /var/log/myjob.log 2>&1. (5) Test your cron expression with crontab.guru or our validator above before deploying.
The cron expression * 9 * * * has different syntax on various scheduling platforms. Here is the equivalent expression for each:
| Platform | Expression |
|---|---|
| Unix / Linux crontab | * 9 * * * |
| Quartz Scheduler (Java) | 0 9 * * ? |
| AWS EventBridge | cron(* 9 ? * * *) |
| Kubernetes CronJob | * 9 * * * |
| Vercel Cron | * 9 * * * |
| GitHub Actions | * 9 * * * (UTC) |
Key differences across platforms: Quartz uses 7 fields starting with seconds and supports L (last) and W (weekday) modifiers. AWS EventBridge requires a 6th year field and uses ? instead of * in day fields when the other day field is specified. Kubernetes uses standard 5-field Unix cron. Vercel Cron uses the same format but schedules are defined in vercel.json. GitHub Actions uses standard cron but runs in UTC timezone only, so adjust the hour field for your local timezone offset.
Follow these tips when setting up cron jobs in production: