Task Scheduler Main program:
ATD production environment is not commonly used
Anacron production environment is not commonly used
Crond commonly used, mainly introduce this program
Crond Service (daemon name Crond, always running):
Command:
Crontab parameters
Common Parameters Introduction:
-e Edit User Task schedule
-L View user's current task schedule
-u user view a user task schedule
Task Scheduler configuration file path:/var/spool/cron/
Under the root User:
Crondtab-e equals Vi/var/spool/cron/root.
Crondtab-l equals Cat/var/spool/cron/root.
Task Scheduler configuration file format:
* * * * Command ( Absolute path recommended for commands, files or directories )
Asterisk |
Meaning |
Range of values |
1th asterisk * |
Representative minutes |
00-59 (00 can also 0) |
2nd asterisk * |
Representative hours |
00-23 |
3rd asterisk * |
Representative Day |
01-31 |
4th asterisk * |
Representative month |
01-12 |
5th asterisk * |
Representative of the Week |
0-6 (0 for Sunday) |
* per
-range, such as: 00 17-19 * * *
, separated, such as: 00 17,20,22 * * * Daily 17 o'clock, 20 points and 22 points
/n per unit time, nth number, such as: */10 * * * * * every 10 minutes
This article is from the "Chhhsdbohe" blog, make sure to keep this source http://437972.blog.51cto.com/427972/1787135
Linux Crond Task Scheduler