Introduction crontab-Operates the daemon of each user and the schedule of the execution.
Some parameters Description crontab file [-u user] - replaces the current crontab with the specified file. Crontab - [- u user] - replaces the current crontab. crontab-1 [user] with standard input, lists the current crontab. crontab-e [user] - edit the user's current crontab. crontab-d [user] - Delete the current crontab. Crontab-c dir- specifies the catalog of crontabs. CRONTAB file format: M H D m D cmd. M: Minute (0-59). H: Hours (0-23). D: Day (1-31). M: Month (1-12). D: The sky within a week (0 ~ 6, 0 is Sunday). CMD To run the program, the program is sent to the SH execution, this shell has only three environment variables of User, HOME, Shell. Here is an example of an example file: # urin hour day month dayofweek command # 6pm 1066 * * Date each morning
# Every two hours 0 * / 2 * * * Date
# 11 points to 8:00 in the morning, the morning is 0 23-7 / 2, 8 * * * DATE
# 4 月 4 和 礼 礼 礼 礼 礼 礼 礼 礼 11 11 早 11 早 早 早 早 11 礼 早 早 早 礼 早 礼 早 礼
# January 4:00 in the morning 4 0 4 1 Jan * Date example lark: ~> crontab-1 lists users current crontab. # Hour day month dayofweek command 10 6 * * * Date 0 * / 2 * * * Date 0 23-7 / 2, 8 * * * Date --------------------------------------- ---