Scheduled tasks under linux – scheduled tasks that are executed only once – linux operation and maintenance
Scheduled tasks are a very good function provided by the operating system. We often use scheduled tasks to deal with some things, such as regularly backing up website data every day, executing data statistics programs every month, and monitoring the operation of the server (when an error occurs Send a message to the administrator), etc., all of which need to be completed by timing tasks. The timing tasks under Linux are divided into two categories: timing tasks that are executed only once, and timing tasks that are executed periodically. Today, let’s take a look at the scheduled tasks that are executed only once. The scheduled tasks that are executed periodically will be described in the next article. atd service We use the at command to execute the scheduled task only once. If you want to execute the at command, you need to start the atd service first. Check the running status of the atd service and the command to open the atd service is as follows: # Check the status of the atd service # systemctl status atd # Enable atd service # systemctl start atd at permission management When using at to generate When creating a new task, the…