mirror of
https://github.com/opsschool/curriculum.git
synced 2026-01-15 12:15:03 +00:00
cron 101: fields to table
This commit is contained in:
11
cron_101.rst
11
cron_101.rst
@@ -37,13 +37,12 @@ something like this:
|
||||
|
||||
Let's dissect this a bit, as it will help when you're creating your own cron
|
||||
jobs. What is this output telling you? It is helpful to know that the fields of
|
||||
a cron job are as follows:
|
||||
a cron job. Here's a table with the order of fields, and their values:
|
||||
|
||||
**MINUTE HOUR DAYOFMONTH MONTH DAYOFWEEK COMMAND**
|
||||
|
||||
and that the acceptable values for each field are:
|
||||
|
||||
**0-59 0-23 1-31 1-12 0-6 filepath/command**
|
||||
====== ==== ========== ===== ========= ================
|
||||
MINUTE HOUR DAYOFMONTH MONTH DAYOFWEEK COMMAND
|
||||
0-59 0-23 1-31 1-12 0-6 filepath/command
|
||||
====== ==== ========== ===== ========= ================
|
||||
|
||||
.. note:: Order matters, and that the first element is 0 for the minute, hour,
|
||||
and day of the week fields, while the day of the month and month
|
||||
|
||||
Reference in New Issue
Block a user