Multiple choice technology

If a crontab entry for a scheduled job is as below, what time and day of the week, the job will be executed. 0 22 * * 1-5 $HOME/bin/testscript.ksh

  1. 10PM every night

  2. 22 minutes past midnight on 1st, 2nd, 3rd, 4th & 5th of every month

  3. 10PM on working days

  4. 22 minutes past midnight on working days

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The crontab format is minute hour day month day-of-week. '0 22 * * 1-5' means run at 0 minutes past 22 hours (10 PM) every day of the month and every month, but only on days 1-5 of the week (Monday-Friday). Option A is incorrect because it excludes weekends. Option B incorrectly interprets the position and meaning. Option D confuses hour with minutes and midnight with 10 PM.