Crontab Command Introduction
Introduction crontab-Operates the daemon of each user and the schedule of the execution. Author Matthew Dillon. 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. Below is an example of an example file: #MIN HOR DAY MONTH Dayofweek Command # 6:00 * * * Date # Every two hours 0 * / 2 * * * Date # Every two hours at 8 o'clock in the morning , Morning part 0 23-7 / 2, 8 * * * Date # Every month's 4th and each week's worship one night 11:00 11:00 11 4 * Mon-Wed Date # January day in the morning 4:00 4 1 Jan * Date example lark: ~> crontab-1 lists users' current crontab. # Hours day month dayofweek command 10 6 * * * Date 0 * / 2 * * * Date 0 23-7 / 2 , 8 * * * Date lars: ~>
(Author: Source: Software House Linu)