| @@ -1,37 +1,37 @@ | | | @@ -1,37 +1,37 @@ |
1 | .\" $NetBSD: crontab.5,v 1.10 2020/04/18 19:32:19 christos Exp $ | | 1 | .\" $NetBSD: crontab.5,v 1.11 2022/02/26 17:02:47 christos Exp $ |
2 | .\" | | 2 | .\" |
3 | .\"/* Copyright 1988,1990,1993,1994 by Paul Vixie | | 3 | .\"/* Copyright 1988,1990,1993,1994 by Paul Vixie |
4 | .\" * All rights reserved | | 4 | .\" * All rights reserved |
5 | .\" */ | | 5 | .\" */ |
6 | .\" | | 6 | .\" |
7 | .\" Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") | | 7 | .\" Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") |
8 | .\" Copyright (c) 1997,2000 by Internet Software Consortium, Inc. | | 8 | .\" Copyright (c) 1997,2000 by Internet Software Consortium, Inc. |
9 | .\" | | 9 | .\" |
10 | .\" Permission to use, copy, modify, and distribute this software for any | | 10 | .\" Permission to use, copy, modify, and distribute this software for any |
11 | .\" purpose with or without fee is hereby granted, provided that the above | | 11 | .\" purpose with or without fee is hereby granted, provided that the above |
12 | .\" copyright notice and this permission notice appear in all copies. | | 12 | .\" copyright notice and this permission notice appear in all copies. |
13 | .\" | | 13 | .\" |
14 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES | | 14 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES |
15 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | | 15 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
16 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR | | 16 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR |
17 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | | 17 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
18 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | | 18 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
19 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT | | 19 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT |
20 | .\" OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | | 20 | .\" OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
21 | .\" | | 21 | .\" |
22 | .\" $OpenBSD: crontab.5,v 1.36 2018/06/13 13:27:37 jmc Exp $ | | 22 | .\" $OpenBSD: crontab.5,v 1.36 2018/06/13 13:27:37 jmc Exp $ |
23 | .\" | | 23 | .\" |
24 | .Dd April 17, 2020 | | 24 | .Dd February 26, 2022 |
25 | .Dt CRONTAB 5 | | 25 | .Dt CRONTAB 5 |
26 | .Os | | 26 | .Os |
27 | .Sh NAME | | 27 | .Sh NAME |
28 | .Nm crontab | | 28 | .Nm crontab |
29 | .Nd tables for driving cron | | 29 | .Nd tables for driving cron |
30 | .Sh DESCRIPTION | | 30 | .Sh DESCRIPTION |
31 | A | | 31 | A |
32 | .Nm | | 32 | .Nm |
33 | file contains instructions to the | | 33 | file contains instructions to the |
34 | .Xr cron 8 | | 34 | .Xr cron 8 |
35 | daemon of the general form: | | 35 | daemon of the general form: |
36 | .Dq at these times on these dates run this command . | | 36 | .Dq at these times on these dates run this command . |
37 | There may be a system | | 37 | There may be a system |
| @@ -288,37 +288,45 @@ variable can be set to an alternate time | | | @@ -288,37 +288,45 @@ variable can be set to an alternate time |
288 | is run. | | 288 | is run. |
289 | Note that this only affects the scheduling of the job, not the time zone | | 289 | Note that this only affects the scheduling of the job, not the time zone |
290 | that the job perceives when it is run. | | 290 | that the job perceives when it is run. |
291 | If | | 291 | If |
292 | .Ev CRON_TZ | | 292 | .Ev CRON_TZ |
293 | is defined but empty | | 293 | is defined but empty |
294 | .Pq Ev CRON_TZ Ns = Ns \&"" , | | 294 | .Pq Ev CRON_TZ Ns = Ns \&"" , |
295 | jobs are scheduled with respect to the local time zone. | | 295 | jobs are scheduled with respect to the local time zone. |
296 | .It Ev CRON_WITHIN | | 296 | .It Ev CRON_WITHIN |
297 | The | | 297 | The |
298 | .Ev CRON_WITHIN | | 298 | .Ev CRON_WITHIN |
299 | variable should indicate the number of seconds within a job's | | 299 | variable should indicate the number of seconds within a job's |
300 | scheduled time that it should still be run. | | 300 | scheduled time that it should still be run. |
| | | 301 | For example if a job is scheduled for 12:30pm and |
| | | 302 | .Ev CRON_WITHIN |
| | | 303 | is |
| | | 304 | .Dv 120 |
| | | 305 | (2 minutes), then the job will not be run if the system attempts |
| | | 306 | to start it past 12:32pm. |
301 | On a heavily loaded system, or on a system that has just been | | 307 | On a heavily loaded system, or on a system that has just been |
302 | .Dq woken up , | | 308 | .Dq woken up , |
303 | jobs will sometimes start later than originally intended, and by | | 309 | jobs will sometimes start later than originally intended, and by |
304 | skipping non-critical jobs because of delays, system load can be | | 310 | skipping non-critical jobs because of delays, system load can be |
305 | lightened. | | 311 | lightened. |
306 | If | | 312 | If |
307 | .Ev CRON_WITHIN | | 313 | .Ev CRON_WITHIN |
308 | is defined but empty | | 314 | is defined but empty |
309 | .Pq Ev CRON_WITHIN Ns = Ns \&"" , | | 315 | .Pq Ev CRON_WITHIN Ns = Ns \&"" , |
310 | or set to some non-positive value (0, a negative number, or a | | 316 | or set to some non-positive value (0, a negative number, or a |
311 | non-numeric string), it is treated as if it was unset. | | 317 | non-numeric string), it is treated as if it was unset, that is |
| | | 318 | the job will always run, even if it is going to start at a time |
| | | 319 | long past its scheduled time. |
312 | .It Ev HOME | | 320 | .It Ev HOME |
313 | Set from the user's | | 321 | Set from the user's |
314 | .Pa /etc/passwd | | 322 | .Pa /etc/passwd |
315 | entry. | | 323 | entry. |
316 | May be overridden by settings in the | | 324 | May be overridden by settings in the |
317 | .Nm . | | 325 | .Nm . |
318 | .It Ev LOGNAME | | 326 | .It Ev LOGNAME |
319 | Set from the user's | | 327 | Set from the user's |
320 | .Pa /etc/passwd | | 328 | .Pa /etc/passwd |
321 | entry. | | 329 | entry. |
322 | May not be overridden by settings in the | | 330 | May not be overridden by settings in the |
323 | .Nm . | | 331 | .Nm . |
324 | .It Ev MAILTO | | 332 | .It Ev MAILTO |