Cron

Pavadinimas

OldNew
11Cron

Permalink

OldNew
11cron

Turinys

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