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.