Cron
ชื่อเรื่อง
No changesPermalink
No changesเนื้อหา
Old | New | ||
---|---|---|---|
1 | # Cron | 1 | # Cron |
2 | 2 | ||
3 | The software utility cron is a time-based job scheduler in Unix-like | 3 | The software utility cron is a time-based job scheduler in Unix-like computer operating systems. People who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals. It typically automates system maintenance or administration—though its general-purpose nature makes it useful for things like connecting to the Internet and downloading email at regular intervals. |
4 | computer operating systems. People who set up and maintain software | 4 | |
5 | environments use cron to schedule jobs (commands or shell scripts) to | 5 | Cron is driven by a crontab (cron table) file, a configuration file that specifies shell commands to run periodically on a given schedule. The crontab files are stored where the lists of jobs and other instructions to the cron daemon are kept. Users can have their own individual crontab files and often there is a system wide crontab file (usually in /etc or a subdirectory of /etc) that only system administrators can edit. |
6 | run periodically at fixed times, dates, or intervals. It typically | 6 | |
7 | automates system maintenance or administration---though its | 7 | ``` |
8 | general-purpose nature makes it useful for things like connecting to the | 8 | * * * * * command to execute |
9 | Internet and downloading email at regular intervals. | 9 | ┬ ┬ ┬ ┬ ┬ |
10 | 10 | │ │ │ │ │ | |
11 | Cron is driven by a crontab (cron table) file, a configuration file that | 11 | │ │ │ │ │ |
12 | specifies shell commands to run periodically on a given schedule. The | 12 | │ │ │ │ └──── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names) |
13 | crontab files are stored where the lists of jobs and other instructions | 13 | │ │ │ └─────── month (1 - 12) |
14 | to the cron daemon are kept. Users can have their own individual crontab | 14 | │ │ └────────── day of month (1 - 31) |
15 | files and often there is a system wide crontab file (usually in /etc or | 15 | │ └───────────── hour (0 - 23) |
16 | a subdirectory of /etc) that only system administrators can edit. | 16 | └──────────────── min (0 - 59) |
17 | 17 | ``` | |
18 | * * * * * command to execute | 18 | |
19 | ┬ ┬ ┬ ┬ ┬ | 19 | # See Also |
20 | │ │ │ │ │ | 20 | |
21 | │ │ │ │ │ | 21 | * [Cron article on Wikipedia](http://en.wikipedia.org/wiki/Cron) |
22 | │ │ │ │ └──── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names) | ||
23 | │ │ │ └─────── month (1 - 12) | ||
24 | │ │ └────────── day of month (1 - 31) | ||
25 | │ └───────────── hour (0 - 23) | ||
26 | └──────────────── min (0 - 59) | ||
27 | |||
28 | [Cron article on Wikipedia ](http://en.wikipedia.org/wiki/Cron) |
Edited by tim on 16 ม.ค. 2024 at 22:50