Crond process application

Source: Internet
Author: User

Crond process application

Crond is a daemon for periodically executing a task or waiting for processing some events in Linux. It is similar to a scheduled task in Windows. After the linux operating system is installed, by default, the service tool is installed and the crond process is automatically started. The crond Process regularly checks whether there are tasks to be executed every minute. If there are tasks to be executed, the task is automatically executed. In Linux, task scheduling is divided into two types: System Task Scheduling and user task scheduling.

System Task Scheduling: the operations that the system periodically performs, such as writing cached data to the hard disk and regularly clearing logs. In my Linux system, there is a crontab file under the/etc directory. This is the configuration file for system task scheduling, which contains some content:


One of the commands is briefly explained:

17 * root cd/& run-parts-repZ restart? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> keys + se3KvsO/keys + keys/CvNbQoaPO0rXEu/keys + CjxwPjxpbWcgc3JjPQ =" http://www.2cto.com/uploadfile/Collfiles/20150318/2015031810105797.jpg "alt =" \ ">

You can add tasks that require periodic execution by yourself. The specific steps are as follows: First, vicrontab1 is a user file, and then directly write the tasks to be executed periodically, for example: 30 21 ***/apps/bin/cleanup. sh indicates to run cleanup in the/apps/bin directory at every day. sh.


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.