The type of scheduled task software under Linux system

Source: Internet
Author: User


  The type of scheduled task software under Linux system

Strictly speaking, there are a lot of timing task software under Linux system, for example:at,crontab, Anacron .

at: For scheduling task commands that are executed only once, for example: One night needs to deal with a task, just the night of the day, is a sudden task. To execute the at command, you also need to start a service called ATD , which is never needed in an old boy's job. Therefore, we recommend that we do not go into the study, so we can explain to this end.

[Email protected] study_20160420]# chkconfig--list|grep ATD

ATD 0:off 1:off 2:off 3:on 4:on 5:on 6:off

[Email protected] study_20160420]# chkconfig--list ATD

ATD 0:off 1:off 2:off 3:on 4:on 5:on 6:off

crontab: As mentioned earlier, this command can perform tasks periodically, for example: Server time synchronization every five minutes. To execute crontab This command, you also need to start a service crond , this crontab command is the most common command in production work, Please make sure you master the mastery.

[Email protected] study_20160420]# chkconfig--list Crond

Crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off

anacron: This command is primarily intended for servers that do not have a server-hour boot,andAnacron does not specify a specific time to perform tasks. It is a task that is performed on a daily cycle or after every system boot. It detects the tasks that should be performed during a server outage, but does not perform the task and executes the task again.

Tips:

1) What we call the crond Service is the running program, and the command that the crontab command user uses to set the timing rules.

2) Crond Service is an important service commonly used in enterprise production, while at and anacron are seldom used and can be neglected.

3) crond services are used by almost every server .

4) A good enterprise will develop a distributed scheduled task project plan.


This article is from the "Yau Xin Zhai" blog, please be sure to keep this source http://mofei.blog.51cto.com/6840705/1767699

The type of scheduled task software under Linux system

Related Article

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.