In a user crontab, run /home/app/bin/report.sh at 02:30 Monday through Friday.
Which entry is appropriate?
User crontab fields are minute, hour, day, month, weekday. 30 2 * * 1-5 selects 02:30 on weekdays.
Detailed explanation
2 30 * * 1-5 /home/app/bin/report.shIncorrect. It reverses the minute and hour fields.
Incorrect. It reverses the minute and hour fields.
30 2 * * 1-5 /home/app/bin/report.shCorrect. It selects minute 30, hour 2, and weekdays 1 through 5.
Correct. It selects minute 30, hour 2, and weekdays 1 through 5.
30 2 1-5 * * /home/app/bin/report.shIncorrect. 1-5 in the day field means the first five days of each month.
Incorrect. 1-5 in the day field means the first five days of each month.
30 2 * 1-5 * /home/app/bin/report.shIncorrect. 1-5 in the month field means January through May.
Incorrect. 1-5 in the month field means January through May.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' '30 2 * * 1-5 command' | awk '{print $1, $2, $5}'Expected result
30 2 1-5Key points
- minute hour day month weekday
- 1-5 means Monday-Friday
- Keep field order
Notes
- Environment: POSIX awk / 模擬エントリのみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.