at at + time at 17:23 at> touch /mnt/file{1..9} ##Delay action at> Type ctrl+d ##Initiate action at -l | atq ##View current task at -d | atrm ##Cancel specified task at -c ##View task content at now+1min ##Delay for one minute at -f file ##Delay execution of the contents in the file at -m ##Send email to the executor when the delay command has no output at -M ##Send email to the executor when the delay command has output Execution authority setting of at command /etc/at.deny ##User blacklist. Users in this list cannot execute at commands. /etc/at.allow ##User whitelist. The list does not exist by default. But once the list appears, the blacklist becomes invalid. All users in the system cannot execute at by default. Only users in the list can use at commands. crontab Initiation method 1 crontab -u username -e ##Edit crontab work content crontab -u username -r ##Remove all crontab work content crontab -u username -l ##Query crontab work content Initiation method 2 vim /etc/cron.d/filename ##Edit this file content minute hour day month week user action * * * * * root rm -fr /mnt/* #Super user cleans up /mnt every minute Execution authority setting of crontab command /etc/cron.deny ##User blacklist. Users who appear in this list cannot execute crontab commands. /etc/cron.allow ##User whitelist. The list does not exist by default, but once the list appears, the blacklist becomes invalid. By default, all system users cannot execute crontab. Only users who appear in the list can use it. Temporary files are generated during normal operation of the service in the temporary file system vim /usr/lib/tmpfiles.d/*.conf ##Configuration file type of temporary files in the system File name File permissions File owner File all groups File existence time d /mnt/westos 777 root root 10s systemd-tmpfiles –create /usr/lib/tmpfiles.d/* ##Execute temporary file configuration vim /usr/lib/tmpfiles.d/test.conf systemd-tmpfiles –clean /usr/lib/tmpfiles.d/* ##Clean temporary files The above is a detailed integration of scheduled tasks and delayed tasks under Linux 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:
|
<<: Comparing Node.js and Deno
>>: MySQL storage engine basics
<br />With the increase of bandwidth, there ...
1. Download the mysql-5.7.17-winx64.zip installat...
I believe that people who have experience with Re...
This article uses examples to illustrate the simp...
The steps are as follows 1. Create a docker group...
1) Scope of application: readonly:input[type="...
Table of contents 1. Use default parameters inste...
It's embarrassing to say that I had to search ...
BMP is an image file format that is independent o...
Mac latest version of MySQL 8.0.22 password recov...
This article explains the difference between arro...
Preface Hello everyone, this is the CSS wizard - ...
Modern browsers no longer allow JavaScript to be ...
1. Introduction The location instruction is the c...
MySQL 5.7 version: Method 1: Use the SET PASSWORD...