Cron

ชื่อเรื่อง

No changes

Permalink

No changes

เนื้อหา

OldNew
1# Cron1# Cron
22
3The software utility cron is a time-based job scheduler in Unix-like3The 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.
4computer operating systems. People who set up and maintain software4
5environments use cron to schedule jobs (commands or shell scripts) to5Cron 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.
6run periodically at fixed times, dates, or intervals. It typically6
7automates system maintenance or administration---though its7```
8general-purpose nature makes it useful for things like connecting to the8 * * * * * command to execute
9Internet and downloading email at regular intervals.9 ┬ ┬ ┬ ┬ ┬
1010 │ │ │ │ │
11Cron is driven by a crontab (cron table) file, a configuration file that11 │ │ │ │ │
12specifies shell commands to run periodically on a given schedule. The12 │ │ │ │ └──── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names)
13crontab files are stored where the lists of jobs and other instructions13 │ │ │ └─────── month (1 - 12)
14to the cron daemon are kept. Users can have their own individual crontab14 │ │ └────────── day of month (1 - 31)
15files and often there is a system wide crontab file (usually in /etc or15 │ └───────────── hour (0 - 23)
16a subdirectory of /etc) that only system administrators can edit.16 └──────────────── min (0 - 59)
1717```
18 * * * * * command to execute18
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