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

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

王林
Release: 2024-01-10 09:33:54
forward
1208 people have browsed it

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template