Home  >  Article  >  System Tutorial  >  How to quickly create a one-time scheduled task in Linux?

How to quickly create a one-time scheduled task in Linux?

王林
王林forward
2024-01-10 09:33:541143browse

Generally speaking, we can use the at command in Linux to create one-time scheduled tasks, which are generally used for temporary needs. How to create it? Let’s take a look at the detailed tutorial below.

1. Open the Linux system, right-click on the desktop to open the terminal window. If it is a third-party tool such as ssh, this step is not required

2. Let’s first use: at -help commandView the usage of the at command

3. If we need to restart the network card service at 15:33, enter the command first: at 15:33

4. After pressing Enter, enter the at dialog box and enter: systemctl restart network

5. After the scheduled task is created, enter: ctrl dEnd writing the scheduled task

6. For at’s scheduled tasks, we can use the command: at -l to view

7. If the plan is executed, then use at -l to view it again, the plan will automatically disappear

The above is the detailed content of How to quickly create a one-time scheduled task in Linux?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete