"Linux Rookie 2" System timing delay task

Source: Internet
Author: User


Delay and timing mechanism of the third Unit system

1.at delay

at time

at> Action

At>ctrl +d

at> <EOT>

     

at-l

ATRM task number

when an action is executed with output

The output is sent to the initiator of the task in the form of a message


at user's black and white list

/etc/at.deny # #默认存在并生效

/etc/at.allow # #默认不存在. Once present, the/etc/at.deny fails

# # # #2. Recurring tasks

Command mode initiated:

crontab-u username-e

mm hh dd mm WW

MM/2 # #每隔两分钟

HH1-HH2 # #多少点到多少点

HH1,HH2 # #多少点和多少点

     

     

crontab-l # #查看

crotab-u usename-r # #删除

     

The way the file originated

vim/etc/cron.d/filename

mm hh dd mm WW usename action

     

echo ' mm HH dd mm WW usename action ' >/etc/cron.d/filename

     

Black and white list

/etc/cron.deny

/etc/cron.allow

3. Management of temporary system files

vim/usr/lib/tmpfiles.d/*.conf

type filename permusergrouptime

d/mnt/westos1777rootroot10s

     

     

systemd-tmpfiles--create/usr/lib/tmpfiles.d/*

systemd-tmpfiles--clean/usr/lib/tmpfiles.d/*


This article from the "12147236" blog, reproduced please contact the author!

"Linux Rookie 2" System timing delay task

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.