Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

System scheduled tasks and delayed tasks

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report