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
Swap space is a common aspect of computing today,...
Table of contents Preface The principle of browse...
This article shares the specific code of Vue to a...
Introduction to Debian Debian in a broad sense re...
Here is a single-line layout using ul>li for l...
1. Cancel the blue color of the a tag when it is ...
In this article, we will use the libudev library ...
Ubuntu install jdk: [link] Install Eclipse on Ubu...
Table of contents 1. Create a vue-cli default pro...
This article describes the import and export oper...
1. Reason I just needed to reinstall MySQL on a n...
Problem background: There is a requirement to tak...
This article shares the specific code of native j...
1 Download MySQL8 from the official website and i...
Table of contents Uncontrolled components Control...