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
Preface The computer I use is a Mac, and the oper...
Preface According to the scope of locking, locks ...
1. New and old domain name jump Application scena...
Web design is an emerging marginal industry that c...
Table of contents history pushState() Method push...
IFNULL(expr1,expr2) If expr1 is not NULL, IFNULL(...
MySQL installation tutorial for Windows system do...
Table of contents introduction Cookie What are Co...
Table of contents 1. What is reflection? 2. Refle...
I believe that people who have experience with Re...
Table of contents Too long to read Component styl...
Table of contents need: Main points: According to...
This article shares with you the graphic tutorial...
This article mainly introduces CSS circular hollo...
This article uses examples to describe the common...