Open the scheduled task editor. Cent uses vim to open it directly by default. If ubutun is installed with multiple editors, the first time you open it, you will be prompted to specify the editor. (3) */1 * * * * sh /root/Shell/monitor.sh Add this line to the file. It means to execute the sh /root/Shell/monitor.sh command every one minute. For more specific timing formats, please check online. This is all you need for simple loop monitoring (4) service crond start starts the scheduled task. On ubutun it is service cron start (5) Check whether the crontab scheduled task has been started crontab -l 2. Shell monitoring disk (1) (2) (3) Summarize The above is the operation method of Linux to implement the size of disk space occupied by timed files introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor 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:
|
<<: Use of JavaScript sleep function
>>: Detailed explanation of the problem of mixed use of limit and sum functions in MySQL
I wrote a simple UDP server and client example be...
Table of contents Preface: 1. Concept 2. The bene...
1. Download the installation package Download add...
question By clicking a control, a floating layer ...
Summary: Problem solving records of MYSQL: No mat...
Related knowledge points Passing values from pa...
This article tests the environment: CentOS 7 64-b...
Suppose there is a table: reward (reward table), ...
There are two ways to configure multiple projects...
1 Introduction Good coding habits are qualities t...
1. Add skip-grant-tables to the my.ini file and r...
Table of contents 1. Download MySQL 2. Unzip the ...
background: Sometimes we need to display json dat...
MySQL5.6 How to create SSL files Official documen...
1. Install openssh-server yum install -y openssl ...