LPI
102-350 · Question #143
You have a script called logout-users which will log out inactive users every hour between the hours of 6 p.m and 7 a.m., Monday through Friday. Choose the best option for a crontab entry:
The correct answer is A. 00 18-07 * * 1-5 logout-users. See the full explanation below for the reasoning.
Question
You have a script called logout-users which will log out inactive users every hour between the hours of 6 p.m and 7 a.m., Monday through Friday. Choose the best option for a crontab entry:
Options
- A00 18-07 * * 1-5 logout-users
- B00 6PM-7AM * * Mon-Friday logout-users
- C
- 6-7 * * 1-5 logout-users
- D
- 18,19,20,21,22,23,0,1,2,3,4,5,6,7 * * 1-5 logout-users
How the community answered
(34 responses)- A76% (26)
- B3% (1)
- C15% (5)
- D6% (2)
Community Discussion
No community discussion yet for this question.