Automating Script Execution for Daily Tasks | CompTIA IT Fundamentals Exam

Best Way to Schedule Daily Script Execution

Question

A systems administrator wants to run a script at a certain time every day.

Which of the following is the BEST way to achieve this?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.

The BEST way to achieve running a script at a certain time every day is to perform task scheduling. Task scheduling is a feature of an operating system that enables the execution of a specific task or script at a predefined time or interval.

In this scenario, the systems administrator can create a scheduled task that will run the script at the desired time. The task scheduler will run the script automatically at the specified time, and the administrator can verify its execution and troubleshoot any errors that may occur.

Performing process management involves managing running processes on the system, which is not directly related to running a script at a certain time. Setting the system date and time is also not a solution to this problem, as it does not automate the execution of the script.

Setting a reminder to run the script is a manual process and requires the administrator to remember to run the script at the scheduled time every day. It is not an automated solution, and the script may not run if the administrator forgets to run it.

In conclusion, task scheduling is the best way to achieve running a script at a certain time every day, as it automates the process and ensures the script runs at the scheduled time without requiring manual intervention.