Pavadinimas
Permalink
Turinys
Old | New |
---|
| | 1 | # Cron |
---|
1 | | 2 | |
---|
| | 3 | The software utility cron is a time-based job scheduler in Unix-like |
---|
| | 4 | computer operating systems. People who set up and maintain software |
---|
| | 5 | environments use cron to schedule jobs (commands or shell scripts) to |
---|
| | 6 | run periodically at fixed times, dates, or intervals. It typically |
---|
| | 7 | automates system maintenance or administration---though its |
---|
| | 8 | general-purpose nature makes it useful for things like connecting to the |
---|
| | 9 | Internet and downloading email at regular intervals. |
---|
| | 10 | |
---|
| | 11 | Cron is driven by a crontab (cron table) file, a configuration file that |
---|
| | 12 | specifies shell commands to run periodically on a given schedule. The |
---|
| | 13 | crontab files are stored where the lists of jobs and other instructions |
---|
| | 14 | to the cron daemon are kept. Users can have their own individual crontab |
---|
| | 15 | files and often there is a system wide crontab file (usually in /etc or |
---|
| | 16 | a subdirectory of /etc) that only system administrators can edit. |
---|
| | 17 | |
---|
| | 18 | * * * * * command to execute |
---|
| | 19 | ┬ ┬ ┬ ┬ ┬ |
---|
| | 20 | │ │ │ │ │ |
---|
| | 21 | │ │ │ │ │ |
---|
| | 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 litecart on 29 gruod. 2023 at 04:28