Delay and timing mechanism

Source: Internet
Author: User


# # # #1. At delay # #

At time

At> Action

At>ctrl +d

At> <EOT>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/89/87/wKiom1gW0gnAUXymAAEK-JSa8rE689.png-wh_500x0-wm_3 -wmp_4-s_352630781.png "title=" image 1.png "alt=" wkiom1gw0gnauxymaaek-jsa8re689.png-wh_50 "/>

At now+ time , can also indicate a delay task

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/89/85/wKioL1gW0h3gL67zAADc2CZZ1Pw344.png-wh_500x0-wm_3 -wmp_4-s_1393560267.png "title=" image 2.png "alt=" wkiol1gw0h3gl67zaadc2czz1pw344.png-wh_50 "/>

At-l

ATRM Task Number

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/87/wKiom1gW0ijxqddTAACAexlxG_Y715.png-wh_500x0-wm_3 -wmp_4-s_3206356345.png "title=" image 3.png "alt=" wkiom1gw0ijxqddtaacaexlxg_y715.png-wh_50 "/>

When an action is executed with output

The output is sent as a message to the person's initiator

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/85/wKioL1gW0jWCQRitAAChauNkt2s308.png-wh_500x0-wm_3 -wmp_4-s_1322208683.png "title=" image 4.png "alt=" wkiol1gw0jwcqritaachaunkt2s308.png-wh_50 "/>

at user's black and white list

/etc/at.deny # # exists by default and takes effect

/etc/at.allow # # default does not exist, once present,/etc/at.deny Invalid

Blacklist:

Studnet users can use the AT command before the blacklist is modified

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/85/wKioL1gW0l3xLjsuAAAbRdWIgg8772.png-wh_500x0-wm_3 -wmp_4-s_2961793323.png "title=" image 5.png "alt=" wkiol1gw0l3xljsuaaabrdwigg8772.png-wh_50 "/>

Modify Configuration

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/89/85/wKioL1gW0mjBXOPNAAAkXim4IBo309.png-wh_500x0-wm_3 -wmp_4-s_3347045608.png "title=" image 6.png "alt=" wkiol1gw0mjbxopnaaakxim4ibo309.png-wh_50 "/>

After modifying the configuration file

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/89/85/wKioL1gW0pqT3punAAA3bA_ezxs803.png-wh_500x0-wm_3 -wmp_4-s_2095514017.png "title=" image 8.png "alt=" wkiol1gw0pqt3punaaa3ba_ezxs803.png-wh_50 "/>

White list:

Modify the configuration file, add the student in the configuration file , and then you can use the at command

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/89/87/wKiom1gW0qazTT8pAABd6N5hGkQ461.png-wh_500x0-wm_3 -wmp_4-s_3191355900.png "title=" image 9.png "alt=" wkiom1gw0qaztt8paabd6n5hgkq461.png-wh_50 "/>

# # # #2. Recurring Tasks ####

Command mode initiated:

Crontab-u USERNAME-E

MM HH dd mm WW

MM/2 # # every 2 minutes

HH1-HH2 # # How many points to how many points

HH1,HH2 # # How many points and how many points

Configuration file Modification Content

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/85/wKioL1gW0rmQSAeaAAAIZ3U3HkI093.png-wh_500x0-wm_3 -wmp_4-s_3086347741.png "title=" image 10.png "alt=" wkiol1gw0rmqsaeaaaaiz3u3hki093.png-wh_50 "/>

Effect

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/87/wKiom1gW0seAwf-DAAC9hn8SJS8224.png-wh_500x0-wm_3 -wmp_4-s_3965992129.png "title=" image 11.png "alt=" wkiom1gw0seawf-daac9hn8sjs8224.png-wh_50 "/>

Crontab-l

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/87/wKiom1gW0yjgOZYvAAAi2frXOLU696.png-wh_500x0-wm_3 -wmp_4-s_809968474.png "title=" image 12.png "alt=" wkiom1gw0yjgozyvaaai2frxolu696.png-wh_50 "/>

Crontab-u Username-r

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/89/85/wKioL1gW0zuQ8UGxAABbpyVg0rc737.png-wh_500x0-wm_3 -wmp_4-s_3899166483.png "title=" image 13.png "alt=" wkiol1gw0zuq8ugxaabbpyvg0rc737.png-wh_50 "/>

The way the file originated

Vim/etc/cron.d/filename

mm HH dd mm WW USERNAME Action

echo ' mm HH dd MM WW USERNAME Action ' >/etc/cron.d/filename

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/87/wKiom1gW00qDo5Y6AAA9YIDWA-U250.png-wh_500x0-wm_3 -wmp_4-s_918859295.png "title=" image 14.png "alt=" wkiom1gw00qdo5y6aaa9yidwa-u250.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/85/wKioL1gW01fiKm2kAACHjaKBKhA797.png-wh_500x0-wm_3 -wmp_4-s_2410316193.png "title=" image 15.png "alt=" wkiol1gw01fikm2kaachjakbkha797.png-wh_50 "/>

Black and white list

/etc/cron.deny

/etc/cron.allow (Black and white list and time-lapse black-and-white list usage basically no difference)

# # # #3. management of temporary system files ####

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

type filename Perm User Group Time

D/mnt/westos 1777 root Root 10s

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

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

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/89/85/wKioL1gW03riCcwDAAAUvqe126U127.png-wh_500x0-wm_3 -wmp_4-s_168715906.png "title=" image 16.png "alt=" wkiol1gw03riccwdaaauvqe126u127.png-wh_50 "/>

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/87/wKiom1gW04nD1hbNAADbaAwque0373.png-wh_500x0-wm_3 -wmp_4-s_4283806390.png "title=" image 17.png "alt=" wkiom1gw04nd1hbnaadbaawque0373.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/89/85/wKioL1gW05-iOO3VAABJ-VYpjU8280.png-wh_500x0-wm_3 -wmp_4-s_3856834479.png "title=" image 18.png "alt=" wkiol1gw05-ioo3vaabj-vypju8280.png-wh_50 "/>


Delay and timing mechanism

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.