Skip to content

Commit 1763821

Browse files
authored
Adjust the punctuation marks (#2735)
* Adjust the punctuation marks * update * Revise the wording of the explanatory text * Update time * Modify pronouns based on the context * Readjust the layout of text content
1 parent be22a27 commit 1763821

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

docs/books/admin_guide/11-tasks.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ If the same user exists in `/etc/cron.deny` and `/etc/cron.allow` at the same ti
125125

126126
When a user schedules a task, there is a file created with their name under `/var/spool/cron/`.
127127

128-
This file contains all the information the `crond` needs to know regarding tasks created by this user, including the commands or programs to run, and the schedule for running them (hour, minute, day, etc.). Note that the minimum time unit that `crond` can recognize is 1 minute. There are similar scheduling tasks in RDBMS (such as MySQL), where time-based scheduling tasks are referred to as the "Event Scheduler." The minimum time unit it can recognize is 1 second, and event-based scheduling tasks are referred to as "Triggers."
128+
This file contains all the information the `crond` needs to know regarding tasks created by this user, including the commands or programs to run, and the schedule for running them (hour, minute, day, etc.). Note that the minimum time unit that `crond` can recognize is 1 minute. There are similar scheduling tasks in RDBMS (such as MySQL), where time-based scheduling tasks are referred to as the "Event Scheduler" (whose recognizable time unit is 1 second), and event-based scheduling tasks are referred to as "Triggers".
129129

130130
![Cron tree](images/tasks-001.png)
131131

@@ -147,14 +147,14 @@ Example:
147147
|--------|-----------------------------------------------------------|
148148
| `-e` | Edits the schedule file with vi |
149149
| `-l` | Displays the contents of the schedule file |
150-
| `-u` | Sets the name of the user whose schedule file is to be manipulated |
150+
| `-u <user>` | Specify a single user to operate |
151151
| `-r` | Deletes the schedule file |
152152

153153
!!! Warning
154154

155155
`crontab` without options deletes the old schedule file and waits for the user to enter new lines. You have to press <kbd>ctrl</kbd> + <kbd>d</kbd> to exit this editing mode.
156156

157-
Only the `root` can use the `-u user` option to manage another user's schedule file.
157+
Only the `root` can use the `-u <user>` option to manage another user's schedule file.
158158

159159
The example above allows the root to schedule a task for user1.
160160

@@ -206,12 +206,12 @@ The `crontab` file is structured according to the following rules.
206206

207207
To simplify the notation for the definition of time, it is advisable to use special symbols.
208208

209-
| Wildcards | Description |
209+
| Special symbol | Description |
210210
|---------------|----------------------------------|
211-
| `*` | Indicates all possible values of the field |
212-
| `-` | Indicates a range of values |
213-
| `,` | Indicates a list of values |
214-
| `/` | Defines a step |
211+
| `*` | Indicates all the time values of the field |
212+
| `-` | Indicates a continuous time range |
213+
| `,` | Indicates the discontinuous time range |
214+
| `/` | Indicateds time interval |
215215

216216
Examples:
217217

@@ -221,19 +221,19 @@ Script executed on April 15 at 10:25 am:
221221
25 10 15 04 * /root/scripts/script > /log/…
222222
```
223223

224-
Run at 11 am and then at 4 pm every day:
224+
Run the task once a day at 11 am and once a day at 4 pm:
225225

226226
```bash
227227
00 11,16 * * * /root/scripts/script > /log/…
228228
```
229229

230-
Run every hour from 11 am to 4 pm every day:
230+
The task runs once an hour from 11 am to 4 pm every day:
231231

232232
```bash
233233
00 11-16 * * * /root/scripts/script > /log/…
234234
```
235235

236-
Run every 10 minutes during working hours:
236+
Run every 10 minutes during working hours on weekdays:
237237

238238
```bash
239239
*/10 8-17 * * 1-5 /root/scripts/script > /log/…
@@ -254,12 +254,12 @@ For the root user, `crontab` also has some special time settings:
254254

255255
A user, rockstar, wants to edit his `crontab` file:
256256

257-
1. `crond` checks to see if he is allowed (`/etc/cron.allow` and `/etc/cron.deny`).
257+
1. The `crond` daemon checks to see if the user is allowed (`/etc/cron.allow` and `/etc/cron.deny`).
258258

259-
2. If he is, he accesses his `crontab` file (`/var/spool/cron/rockstar`).
259+
2. If the user is allowed, they access their `crontab` file (`/var/spool/cron/rockstar`).
260260

261-
Every minute `crond` reads the schedule files.
261+
The `crond` daemon:
262262

263-
3. It executes the scheduled tasks.
264-
265-
4. It reports systematically in a log file (`/var/log/cron`).
263+
* Reads - Reads the scheduled task files of all users every minute.
264+
* Runs - Runs tasks according to the schedule.
265+
* Writes - Writes the corresponding events and messages to the (`/var/log/cron`) file.

0 commit comments

Comments
 (0)