1. Create a scheduling task instruction crontab -e enters the current user editing interface crontab -u username-e Enter the specified user editing interface Enter the crontab task editing interface Task writing format #Check the /ect directory once every minute and write the directory contents to /tml/a.txt */ 1 * * * * ll /etc >> /tmp/a.text #crontab object + instructions #Execute multiple tasks simultaneously crontab object parameters The first * indicates the minute range 0-59 The second * indicates the hour range: 0-23 The third * indicates the day. Range: 1-31 The fourth * indicates the month. Range: 1-12 The fifth * indicates the day of the week: 0-7 (0 and 7 both mean weekends) The meaning of special symbols in crontab objects * Any time , represents multiple time points, such as 1,2 * * * * means that the command will be executed at 1:00 and 2:00 every day - represents a closed interval between the time */N represents how often it is executed 2. View tasks crontab -l View the tasks under the current user crontab -u username -l View the tasks under the specified user 3. Delete tasks crontab -r deletes tasks under the current user crontab -u username -r deletes the tasks under the specified user Summarize The above is what I introduced to you about crontab task scheduling in Linux. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Recommended plugins and usage examples for vue unit testing
>>: Copy fields between different tables in MySQL
This article shares the mysql5.6.24 automatic ins...
reduce method is an array iteration method. Unlik...
Table of contents 1. Customize the network to rea...
Two cases: 1. With index 2. Without index Prerequ...
CSS import method - inline Through the style tag ...
Prerequisite: The web developer plugin has been in...
<br />Previous article: Web Design Tutorial ...
This article example shares the specific code of ...
This article introduces the installation of Windo...
Table of contents introduction 1. Case Overview 2...
1. Install MySQL: Use the following three command...
Preface We need to retrieve certain data that mee...
This article shares the specific code of JavaScri...
Preface Due to the weak typing of JS, loose writi...
Table of contents 1. Simple page example 2.uni-ap...