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
Core code /*-------------------------------- Find...
Recently I saw an article on a public account tha...
Here are a few ways to remove it: Add the link dir...
In MySQL, you can use IF(), IFNULL(), NULLIF(), a...
Table of contents 2 solutions for file upload Bas...
Preface Let's get straight to the point. The ...
Table of contents Solution 1 Solution 2 When crea...
How to check the file system type of a partition ...
Async Hooks is a new feature of Node8. It provide...
Table of contents cycle for for-in for-of while d...
Let me briefly describe some common basic graphic...
Preface Recently, I was working on a report funct...
JavaScript now releases a new version every year,...
RocketMQ is a distributed, queue-based messaging ...
As more and more projects are deployed, more and ...