minute hour day_of_month month day_of_week command
B. 30 * * * 6 myscript: This is correct regarding the day of the week (6 represents Saturday in the crontab, where Sunday is 0), but it will run every hour on Saturdays, not Sundays.
The correct answer is: B. 30 * * * 6 myscript.
Explanation:
In a crontab entry, there are five fields that specify when the command should be executed:
The first field specifies the minutes (0-59).
The second field specifies the hours (0-23).
The third field specifies the day of the month (1-31).
The fourth field specifies the month (1-12).
The fifth field specifies the day of the week (0-6), where 0 is Sunday.
In the crontab entry "30 * * * 6 myscript", the "30" in the first field specifies that the command should be run at 30 minutes past the hour, the "*" in the second, third and fourth fields means "any hour", "any day of the month" and "any month", respectively. The "6" in the fifth field specifies that the command should be run on Sundays. Therefore, this crontab entry will execute "myscript" at 30 minutes past every hour on Sundays.
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ncsiki
6 months, 1 week agoEliteAllen
6 months, 3 weeks agorona962
1 year, 2 months ago