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
1. First, create a hello-world.cpp file The progr...
Introduction: Interface designer Joshua Porter pub...
HTML-centric front-end development is almost what ...
Let's talk about some problems I have encounte...
Problem Description I recently encountered a prob...
How to write join If you use left join, is the ta...
question The seamless scrolling of pictures and t...
1. Download 4 rpm packages mysql-community-client...
This article shares with you the solution to the ...
Table of contents 1. What is virtual dom? 2. Why ...
In the previous article, we wrote about how to de...
Preface Recently our server was attacked by hacke...
This article example shares the specific code for...
Table of contents Preface Communication between t...
Table of contents 1 System Introduction 2 System ...