Get the App
SLTechnology News&Howtos  ›  Servers  › 

System scheduled tasks and delayed tasks

Shulou Source: shulou.com Published: 2022-06-02 10:46:21 11月03日 Update

Delayed task

Eg: leave temporarily and let it postpone shutdown

Write the script in advance and let it be executed

# # 1. Deferral task initiation # experiment: monitoring: the effect is obvious watch-n 1 ls-lR / mnt and then initiate a deferred task in enterprise 8: note above

# 2. When the deferred task has output, the output will be emailed to the task initiator's mailbox # dnf whatprovides / bin/maildnf install mailx-12.5-29.el8.x86_64 postfix: Mail service installs this service dnf install postfix-y

Q: exit

# 3.at command control # # / etc/at.deny at control blacklist people on this list cannot execute at/etc/at.allow 1. This file does not exist by default, * * 2. When this file exists / etc/at.deny does not take effect * * 3. When this file exists in the system, ordinary users cannot execute at by default, but only users in the list can execute it.

Note: 3.2

Scheduled task

Eg: alarm clock

-u user

-e editor

Man 5 crontab to view the corresponding representation

Tags: Task delay file user list mail control service output system obvious normal image above enterprise initiator only command form effect note Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Huawei OPPO Reno vpn Microsoft