SUN
310-200 · Question #125
There is a requirement to run a script every other month starting next month (March). This script is to be run every Monday, Wednesday, and Friday. What is the crontab entry that achieves this?
The correct answer is D. 25 23 * 3, 5, 7, 9, 11, 1 1, 3, 5 /opt/application/gather_data. See the full explanation below for the reasoning.
Question
There is a requirement to run a script every other month starting next month (March). This script is to be run every Monday, Wednesday, and Friday. What is the crontab entry that achieves this?
Options
- A25 23 * 1, 3, 5 3, 5, 7, 9, 11, 1 /opt/application/gather_data
- B25 23 3, 5, 7, 9, 11, 1 * 1, 3, 5 /opt/application/gather_data
- C25 23 1, 3, 5 * 3, 5, 7, 9, 11, 1 /opt/application/gather_data
- D25 23 * 3, 5, 7, 9, 11, 1 1, 3, 5 /opt/application/gather_data
How the community answered
(29 responses)- A7% (2)
- B3% (1)
- C21% (6)
- D69% (20)
Community Discussion
No community discussion yet for this question.