This video focuses on the functionality of two services used for scheduling tasks, specifically for a Linux environment. The first service is designed for one-time tasks, allowing users to schedule actions that need to occur only once, such as rebooting a server. The second service is intended for recurring tasks, enabling users to automate processes like backups on a regular basis.
To begin with, if the one-time scheduling service is not already available, it can be installed using a package manager. Once installed, it’s important to ensure that the service is running, as it needs to be active to accept scheduled tasks. Users can schedule a task to execute after a specific duration, and upon initiating the scheduling command, they will be prompted to enter the desired action, which can be completed by signaling the end of the input.
In addition to one-time tasks, there is also a method for scheduling scripts to run at a designated time in the future. Users can easily check the jobs that are currently queued for execution, and if necessary, they can remove a specific scheduled task by referencing its assigned job number.
For repetitive tasks, users have the ability to edit a dedicated scheduling file, where they can specify the timing details for each task alongside the command that needs to be executed. The timing format requires inputs for minutes, hours, days of the month, months, and days of the week. A helpful resource is available online to assist in crafting the correct schedule.
Users can view the current scheduled tasks without making edits, and there are options to manage the crontab entries of other users, allowing for flexibility in task management across different accounts.
Source Link