Debian Codegraph @

templates/man5/crontab.5.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:21+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "CRONTAB"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2012-11-22"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
35 #: opensuse-tumbleweed
36 #, no-wrap
37 msgid "cronie"
38 msgstr ""
39
40 #. type: TH
41 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
42 #: opensuse-tumbleweed
43 #, no-wrap
44 msgid "File Formats"
45 msgstr ""
46
47 #. #-#-#-#-# archlinux: crontab.5.pot (PACKAGE VERSION) #-#-#-#-#
48 #. type: SH
49 #. #-#-#-#-# debian-trixie: crontab.5.pot (PACKAGE VERSION) #-#-#-#-#
50 #. -----------------------------------------------------------------
51 #. * MAIN CONTENT STARTS HERE *
52 #. -----------------------------------------------------------------
53 #. type: SH
54 #. #-#-#-#-# debian-unstable: crontab.5.pot (PACKAGE VERSION) #-#-#-#-#
55 #. -----------------------------------------------------------------
56 #. * MAIN CONTENT STARTS HERE *
57 #. -----------------------------------------------------------------
58 #. type: SH
59 #. #-#-#-#-# fedora-44: crontab.5.pot (PACKAGE VERSION) #-#-#-#-#
60 #. type: SH
61 #. #-#-#-#-# fedora-rawhide: crontab.5.pot (PACKAGE VERSION) #-#-#-#-#
62 #. type: SH
63 #. #-#-#-#-# mageia-cauldron: crontab.5.pot (PACKAGE VERSION) #-#-#-#-#
64 #. type: SH
65 #. #-#-#-#-# opensuse-leap-16-1: crontab.5.pot (PACKAGE VERSION) #-#-#-#-#
66 #. type: SH
67 #. #-#-#-#-# opensuse-tumbleweed: crontab.5.pot (PACKAGE VERSION) #-#-#-#-#
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "NAME"
73 msgstr ""
74
75 #. type: Plain text
76 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
77 #: opensuse-tumbleweed
78 msgid "crontab - files used to schedule the execution of programs"
79 msgstr ""
80
81 #. type: SH
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "DESCRIPTION"
86 msgstr ""
87
88 #. type: Plain text
89 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
90 #: opensuse-tumbleweed
91 msgid ""
92 "A I<crontab> file contains instructions for the B<cron>(8) daemon in the "
93 "following simplified manner: \"run this command at this time on this "
94 "date\". Each user can define their own crontab. Commands defined in any "
95 "given crontab are executed under the user who owns that particular crontab. "
96 "Uucp and News usually have their own crontabs, eliminating the need for "
97 "explicitly running B<su>(1) as part of a cron command."
98 msgstr ""
99
100 #. type: Plain text
101 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
102 #: opensuse-tumbleweed
103 msgid ""
104 "Blank lines, leading spaces, and tabs are ignored. Lines whose first non-"
105 "white space character is a pound-sign (#) are comments, and are not "
106 "processed. Note that comments are not allowed on the same line as cron "
107 "commands, since they are considered a part of the command. Similarly, "
108 "comments are not allowed on the same line as environment variable settings."
109 msgstr ""
110
111 #. type: Plain text
112 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
113 #: opensuse-tumbleweed
114 msgid ""
115 "An active line in a crontab is either an environment setting or a cron "
116 "command. An environment setting is of the form:"
117 msgstr ""
118
119 #. type: Plain text
120 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
121 #: opensuse-tumbleweed
122 #, no-wrap
123 msgid " name = value\n"
124 msgstr ""
125
126 #. type: Plain text
127 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
128 #: opensuse-tumbleweed
129 msgid ""
130 "where the white spaces around the equal-sign (=) are optional, and any "
131 "subsequent non-leading white spaces in I<value> is a part of the value "
132 "assigned to I<name>. The I<value> string may be placed in quotes (single or "
133 "double, but matching) to preserve leading or trailing white spaces."
134 msgstr ""
135
136 #. type: Plain text
137 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
138 #: opensuse-tumbleweed
139 msgid ""
140 "Several environment variables are set up automatically by the B<cron>(8) "
141 "daemon. I<SHELL> is set to /bin/sh, and I<LOGNAME> and I<HOME> are set from "
142 "the /etc/passwd line of the crontab\\'s owner. I<HOME> and I<SHELL> can be "
143 "overridden by settings in the crontab; LOGNAME can not."
144 msgstr ""
145
146 #. type: Plain text
147 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
148 #: opensuse-tumbleweed
149 msgid ""
150 "(Note: the I<LOGNAME> variable is sometimes called I<USER> on BSD systems "
151 "and is also automatically set)."
152 msgstr ""
153
154 #. type: Plain text
155 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
156 #: opensuse-tumbleweed
157 msgid ""
158 "In addition to I<LOGNAME>, I<HOME>, and I<SHELL>, B<cron>(8) looks at the "
159 "I<MAILTO> variable if a mail needs to be send as a result of running any "
160 "commands in that particular crontab. If I<MAILTO> is defined (and non-"
161 "empty), mail is sent to the specified address. If I<MAILTO> is defined but "
162 "empty (I<MAILTO=\"\">), no mail is sent. Otherwise, mail is sent to the "
163 "owner of the crontab. This option is useful if you decide to use /bin/mail "
164 "instead of /usr/lib/sendmail as your mailer. Note that /bin/mail does not "
165 "provide aliasing and UUCP usually does not read its mail. If I<MAILFROM> is "
166 "defined (and non-empty), it is used as the envelope sender address, "
167 "otherwise, the username of the executing user is used. This variable is also "
168 "inherited from the crond process environment."
169 msgstr ""
170
171 #. type: Plain text
172 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
173 #: opensuse-tumbleweed
174 msgid ""
175 "(Note: Both I<MAILFROM> and I<MAILTO> variables are expanded, so setting "
176 "them as in the following example works as expected: MAILFROM=cron-"
177 "[email protected] ($USER is replaced by the system user) )"
178 msgstr ""
179
180 #. type: Plain text
181 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
182 #: opensuse-tumbleweed
183 msgid ""
184 "By default, cron sends a mail using the 'Content-Type:' header of 'text/"
185 "plain' with the 'charset=' parameter set to the 'charmap/codeset' of the "
186 "locale in which B<crond>(8) is started up, i.e., either the default system "
187 "locale, if no LC_* environment variables are set, or the locale specified by "
188 "the LC_* environment variables (see B<locale>(7)). Different character "
189 "encodings can be used for mailing cron job outputs by setting the "
190 "I<CONTENT_TYPE> and I<CONTENT_TRANSFER_ENCODING> variables in a crontab to "
191 "the correct values of the mail headers of those names."
192 msgstr ""
193
194 #. type: Plain text
195 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
196 #: opensuse-tumbleweed
197 msgid ""
198 "The I<CRON_TZ> variable specifies the time zone specific for the cron "
199 "table. The user should enter a time according to the specified time zone "
200 "into the table. The time used for writing into a log file is taken from the "
201 "local time zone, where the daemon is running."
202 msgstr ""
203
204 #. type: Plain text
205 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
206 #: opensuse-tumbleweed
207 msgid ""
208 "The I<MLS_LEVEL> environment variable provides support for multiple per-job "
209 "SELinux security contexts in the same crontab. By default, cron jobs "
210 "execute with the default SELinux security context of the user that created "
211 "the crontab file. When using multiple security levels and roles, this may "
212 "not be sufficient, because the same user may be running in different roles "
213 "or in different security levels. For more information about roles and "
214 "SELinux MLS/MCS, see B<selinux>(8) and the crontab example mentioned later "
215 "on in this text. You can set the I<MLS_LEVEL> variable to the SELinux "
216 "security context string specifying the particular SELinux security context "
217 "in which you want jobs to be run. B<crond> will then set the execution "
218 "context of those jobs that meet the specifications of the particular "
219 "security context. For more information, see B<crontab>(1)\\ -s\\ option."
220 msgstr ""
221
222 #. type: Plain text
223 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
224 #: opensuse-tumbleweed
225 msgid ""
226 "The I<RANDOM_DELAY> variable allows delaying job startups by random amount "
227 "of minutes with upper limit specified by the variable. The random scaling "
228 "factor is determined during the cron daemon startup so it remains constant "
229 "for the whole run time of the daemon."
230 msgstr ""
231
232 #. type: Plain text
233 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
234 #: opensuse-tumbleweed
235 msgid ""
236 "The format of a cron command is similar to the V7 standard, with a number of "
237 "upward-compatible extensions. Each line has five time-and-date fields "
238 "followed by a B<user>name (if this is the B<system> crontab file), and "
239 "followed by a command. Commands are executed by B<cron>(8) when the "
240 "'minute', 'hour', and 'month of the year' fields match the current time, "
241 "I<and> at least one of the two 'day' fields ('day of month', or 'day of "
242 "week') match the current time (see \"Note\" below)."
243 msgstr ""
244
245 #. type: Plain text
246 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
247 #: opensuse-tumbleweed
248 msgid ""
249 "Note that this means that non-existent times, such as the \"missing hours\" "
250 "during the daylight savings time conversion, will never match, causing jobs "
251 "scheduled during the \"missing times\" not to be run. Similarly, times that "
252 "occur more than once (again, during the daylight savings time conversion) "
253 "will cause matching jobs to be run twice."
254 msgstr ""
255
256 #. type: Plain text
257 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
258 #: opensuse-tumbleweed
259 msgid "B<cron>(8) examines cron entries every minute."
260 msgstr ""
261
262 #. type: Plain text
263 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
264 #: opensuse-tumbleweed
265 msgid "The time and date fields are:"
266 msgstr ""
267
268 #. type: ta
269 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
270 #: opensuse-tumbleweed
271 #, no-wrap
272 msgid "1.5i"
273 msgstr ""
274
275 #. type: Plain text
276 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
277 #: opensuse-tumbleweed
278 msgid "field\tallowed values"
279 msgstr ""
280
281 #. type: Plain text
282 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
283 #: opensuse-tumbleweed
284 msgid "-----\t--------------"
285 msgstr ""
286
287 #. type: Plain text
288 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
289 #: opensuse-tumbleweed
290 msgid "minute\t0-59"
291 msgstr ""
292
293 #. type: Plain text
294 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
295 #: opensuse-tumbleweed
296 msgid "hour\t0-23"
297 msgstr ""
298
299 #. type: Plain text
300 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
301 #: opensuse-tumbleweed
302 msgid "day of month\t1-31"
303 msgstr ""
304
305 #. type: Plain text
306 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
307 #: opensuse-tumbleweed
308 msgid "month\t1-12 (or names, see below)"
309 msgstr ""
310
311 #. type: Plain text
312 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
313 #: opensuse-tumbleweed
314 msgid "day of week\t0-7 (0 or 7 is Sunday, or use names)"
315 msgstr ""
316
317 #. type: Plain text
318 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
319 #: opensuse-tumbleweed
320 msgid ""
321 "A field may contain an asterisk (*), which always stands for \"first-last\"."
322 msgstr ""
323
324 #. type: Plain text
325 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
326 #: opensuse-tumbleweed
327 msgid ""
328 "Ranges of numbers are allowed. Ranges are two numbers separated with a "
329 "hyphen. The specified range is inclusive. For example, 8-11 for an 'hours' "
330 "entry specifies execution at hours 8, 9, 10, and 11. The first number must "
331 "be less than or equal to the second one."
332 msgstr ""
333
334 #. type: Plain text
335 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
336 #: opensuse-tumbleweed
337 msgid ""
338 "Randomization of the execution time within a range can be used. A random "
339 "number within a range specified as two numbers separated with a tilde is "
340 "picked. The specified range is inclusive. For example, 6~15 for a "
341 "'minutes' entry picks a random minute within 6 to 15 range. The random "
342 "number is picked when crontab file is parsed. The first number must be less "
343 "than or equal to the second one. You might omit one or both of the numbers "
344 "specifying the range. For example, ~ for a 'minutes' entry picks a random "
345 "minute within 0 to 59 range."
346 msgstr ""
347
348 #. type: Plain text
349 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
350 #: opensuse-tumbleweed
351 msgid ""
352 "Lists are allowed. A list is a set of numbers (or ranges) separated by "
353 "commas. Examples: \"1,2,5,9\", \"0-4,8-12\"."
354 msgstr ""
355
356 #. type: Plain text
357 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
358 #: opensuse-tumbleweed
359 msgid ""
360 "Step values can be used in conjunction with ranges. Following a range with "
361 "\"/E<lt>numberE<gt>\" specifies skips of the number's value through the "
362 "range. For example, \"0-23/2\" can be used in the 'hours' field to specify "
363 "command execution for every other hour (the alternative in the V7 standard "
364 "is \"0,\\:2,\\:4,\\:6,\\:8,\\:10,\\:12,\\:14,\\:16,\\:18,\\:20,\\:22\"). "
365 "Step values are also permitted after an asterisk, so if specifying a job to "
366 "be run every two hours, you can use \"*/2\". Please note that steps are "
367 "evaluated just within the field they are applied to. For example \"*/23\" in "
368 "hours field means to execute the job on the hour 0 and the hour 23 within a "
369 "calendar day. See \"NOTES\" below for a workaround."
370 msgstr ""
371
372 #. type: Plain text
373 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
374 #: opensuse-tumbleweed
375 msgid ""
376 "Names can also be used for the 'month' and 'day of week' fields. Use the "
377 "first three letters of the particular day or month (case does not matter). "
378 "Ranges and lists of names are allowed. Examples: \"mon,wed,fri\", \"jan-"
379 "mar\"."
380 msgstr ""
381
382 #. type: Plain text
383 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
384 #: opensuse-tumbleweed
385 msgid ""
386 "If the UID of the owner is 0 (root), the first character of a crontab entry "
387 "can be \"-\" character. This will prevent cron from writing a syslog message "
388 "about the command being executed."
389 msgstr ""
390
391 #. type: Plain text
392 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
393 #: opensuse-tumbleweed
394 msgid ""
395 "The \"sixth\" field (the rest of the line) specifies the command to be run. "
396 "The entire command portion of the line, up to a newline or a \"%\" "
397 "character, will be executed by /bin/sh or by the shell specified in the "
398 "SHELL variable of the cronfile. A \"%\" character in the command, unless "
399 "escaped with a backslash (\\e), will be changed into newline characters, and "
400 "all data after the first % will be sent to the command as standard input."
401 msgstr ""
402
403 #. type: Plain text
404 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
405 #: opensuse-tumbleweed
406 msgid ""
407 "Note: The day of a command's execution can be specified in the following two "
408 "fields \\(em 'day of month', and 'day of week'. If both fields are "
409 "restricted (i.e., do not contain the \"*\" character), the command will be "
410 "run when I<either> field matches the current time. For example,"
411 msgstr ""
412
413 #. type: Plain text
414 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
415 #: opensuse-tumbleweed
416 msgid ""
417 "\"30 4 1,15 * 5\" would cause a command to be run at 4:30 am on the 1st and "
418 "15th of each month, plus every Friday."
419 msgstr ""
420
421 #. type: Plain text
422 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
423 #: opensuse-tumbleweed
424 msgid ""
425 "A crontab file syntax can be tested before an install using the -T option. "
426 "See B<crontab>(1) for details."
427 msgstr ""
428
429 #. type: SH
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "EXAMPLE CRON FILE"
434 msgstr ""
435
436 #. type: Plain text
437 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
438 #: opensuse-tumbleweed
439 #, no-wrap
440 msgid ""
441 "# use /bin/sh to run commands, no matter what /etc/passwd says\n"
442 "SHELL=/bin/sh\n"
443 "# mail any output to `paul', no matter whose crontab this is\n"
444 "MAILTO=paul\n"
445 "#\n"
446 "CRON_TZ=Japan\n"
447 "# run five minutes after midnight, every day\n"
448 "5 0 * * * $HOME/bin/daily.job E<gt>E<gt> $HOME/tmp/out 2E<gt>&1\n"
449 "# run at 2:15pm on the first of every month -- output mailed to paul\n"
450 "15 14 1 * * $HOME/bin/monthly\n"
451 "# run at 10 pm on weekdays, annoy Joe\n"
452 "0 22 * * 1-5 mail -s \"It's 10pm\" joe%Joe,%%Where are your kids?%\n"
453 "23 0-23/2 * * * echo \"run 23 minutes after midn, 2am, 4am ..., everyday\"\n"
454 "5 4 * * sun echo \"run at 5 after 4 every sunday\"\n"
455 msgstr ""
456
457 #. type: SH
458 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
459 #: opensuse-tumbleweed
460 #, no-wrap
461 msgid "Jobs in /etc/cron.d/"
462 msgstr ""
463
464 #. type: Plain text
465 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
466 #: opensuse-tumbleweed
467 msgid ""
468 "The jobs in I<cron.d> and I</etc/crontab> are system jobs, which are used "
469 "usually for more than one user, thus, additionally the username is needed. "
470 "MAILTO on the first line is optional."
471 msgstr ""
472
473 #. type: SH
474 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
475 #: opensuse-tumbleweed
476 #, no-wrap
477 msgid "EXAMPLE OF A JOB IN /etc/cron.d/job"
478 msgstr ""
479
480 #. type: Plain text
481 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
482 #: opensuse-tumbleweed
483 #, no-wrap
484 msgid ""
485 "#login as root\n"
486 "#create job with preferred editor (e.g. vim)\n"
487 "MAILTO=root\n"
488 "* * * * * root touch /tmp/file\n"
489 msgstr ""
490
491 #. type: SH
492 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
493 #: opensuse-tumbleweed
494 #, no-wrap
495 msgid "NOTES"
496 msgstr ""
497
498 #. type: Plain text
499 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
500 #: opensuse-tumbleweed
501 msgid ""
502 "As noted above, skip values only operate within the time period they\\'re "
503 "attached to. For example, specifying \"0/35\" for the minute field of a "
504 "crontab entry won\\'t cause that entry to be executed every 35 minutes; "
505 "instead, it will be executed twice every hour, at 0 and 35 minutes past. "
506 "For more fine-grained control you can do something like this:"
507 msgstr ""
508
509 #. type: Plain text
510 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
511 #: opensuse-tumbleweed
512 #, no-wrap
513 msgid ""
514 "* * * * * if [ $(expr \\e( $(date +%s) / 60 \\e) % 58) = 0 ]; then echo this runs every 58 minutes; fi\n"
515 "0 * * * * if [ $(expr \\e( $(date +%s) / 3600 \\e) % 23) = 0 ]; then echo this runs every 23 hours on the hour; fi\n"
516 msgstr ""
517
518 #. type: Plain text
519 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
520 #: opensuse-tumbleweed
521 msgid ""
522 "Adjust as needed if your B<date>(1) command does not accept \"+%s\" as the "
523 "format string specifier to output the current UNIX timestamp."
524 msgstr ""
525
526 #. type: SH
527 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
528 #: opensuse-tumbleweed
529 #, no-wrap
530 msgid "SELinux with multi level security (MLS)"
531 msgstr ""
532
533 #. type: Plain text
534 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
535 #: opensuse-tumbleweed
536 msgid ""
537 "In a crontab, it is important to specify a security level by I<crontab -s> "
538 "or specifying the required level on the first line of the crontab. Each "
539 "level is specified in I</etc/selinux/targeted/seusers>. When using crontab "
540 "in the MLS mode, it is especially important to:"
541 msgstr ""
542
543 #. type: Plain text
544 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
545 #: opensuse-tumbleweed
546 msgid "- check/change the actual role,"
547 msgstr ""
548
549 #. type: Plain text
550 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
551 #: opensuse-tumbleweed
552 msgid "- set correct I<role for> I<directory>, which is used for input/output."
553 msgstr ""
554
555 #. type: SH
556 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
557 #: opensuse-tumbleweed
558 #, no-wrap
559 msgid "EXAMPLE FOR SELINUX MLS"
560 msgstr ""
561
562 #. type: Plain text
563 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
564 #: opensuse-tumbleweed
565 #, no-wrap
566 msgid ""
567 "# login as root\n"
568 "newrole -r sysadm_r\n"
569 "mkdir /tmp/SystemHigh\n"
570 "chcon -l SystemHigh /tmp/SystemHigh\n"
571 "crontab -e\n"
572 "# write in crontab file\n"
573 "MLS_LEVEL=SystemHigh\n"
574 "0-59 * * * * id -Z E<gt> /tmp/SystemHigh/crontest\n"
575 msgstr ""
576
577 #. type: SH
578 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
579 #: opensuse-tumbleweed
580 #, no-wrap
581 msgid "FILES"
582 msgstr ""
583
584 #. type: Plain text
585 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
586 #: opensuse-tumbleweed
587 msgid ""
588 "I</etc/crontab> main system crontab file. I</var/spool/cron/> a directory "
589 "for storing crontabs defined by users. I</etc/cron.d/> a directory for "
590 "storing system crontabs."
591 msgstr ""
592
593 #. type: SH
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid "SEE ALSO"
598 msgstr ""
599
600 #. type: Plain text
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 msgid "B<cron>(8), B<crontab>(1)"
604 msgstr ""
605
606 #. type: SH
607 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
608 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
609 #, no-wrap
610 msgid "EXTENSIONS"
611 msgstr ""
612
613 #. type: Plain text
614 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
615 #: opensuse-tumbleweed
616 msgid ""
617 "These special time specification \"nicknames\" which replace the 5 initial "
618 "time and date fields, and are prefixed with the '@' character, are supported:"
619 msgstr ""
620
621 #. type: Plain text
622 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
623 #: opensuse-tumbleweed
624 #, no-wrap
625 msgid ""
626 "@reboot : Run once after reboot.\n"
627 "@yearly : Run once a year, ie. \"0 0 1 1 *\".\n"
628 "@annually : Run once a year, ie. \"0 0 1 1 *\".\n"
629 "@monthly : Run once a month, ie. \"0 0 1 * *\".\n"
630 "@weekly : Run once a week, ie. \"0 0 * * 0\".\n"
631 "@daily : Run once a day, ie. \"0 0 * * *\".\n"
632 "@hourly : Run once an hour, ie. \"0 * * * *\".\n"
633 msgstr ""
634
635 #. type: SH
636 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
637 #: opensuse-tumbleweed
638 #, no-wrap
639 msgid "CAVEATS"
640 msgstr ""
641
642 #. type: Plain text
643 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
644 #: opensuse-tumbleweed
645 msgid ""
646 "B<crontab> files have to be regular files or symlinks to regular files, they "
647 "must not be executable or writable for anyone else but the owner. This "
648 "requirement can be overridden by using the B<-p> option on the crond command "
649 "line. If inotify support is in use, changes in the symlinked crontabs are "
650 "not automatically noticed by the cron daemon. The cron daemon must receive "
651 "a SIGHUP signal to reload the crontabs. This is a limitation of the inotify "
652 "API."
653 msgstr ""
654
655 #. type: Plain text
656 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
657 #: opensuse-tumbleweed
658 msgid ""
659 "cron requires that each entry in a crontab end in a newline character. If "
660 "the last entry in a crontab is missing a newline (i.e.\\& terminated by "
661 "EOF), cron will consider the crontab (at least partially) broken. A warning "
662 "will be written to syslog."
663 msgstr ""
664
665 #. type: SH
666 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
667 #: opensuse-tumbleweed
668 #, no-wrap
669 msgid "AUTHOR"
670 msgstr ""
671
672 #. type: Plain text
673 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
674 #: opensuse-tumbleweed
675 msgid "E<.MT [email protected]> Paul Vixie E<.ME>"
676 msgstr ""
677
678 #. type: TH
679 #: debian-trixie
680 #, no-wrap
681 msgid "06/13/2025"
682 msgstr ""
683
684 #. type: TH
685 #: debian-trixie debian-unstable
686 #, no-wrap
687 msgid "crontab"
688 msgstr ""
689
690 #. type: TH
691 #: debian-trixie debian-unstable
692 #, no-wrap
693 msgid "crontab User Manual"
694 msgstr ""
695
696 #. type: Plain text
697 #: debian-trixie debian-unstable
698 msgid "crontab - tables for driving cron"
699 msgstr ""
700
701 #. type: Plain text
702 #: debian-trixie debian-unstable
703 msgid ""
704 "A I<crontab> file contains instructions to the B<cron>(8) daemon of the "
705 "general form: \\(lqrun this command at this time on this date\\(rq\\&. Each "
706 "user has their own crontab, and commands in any given crontab will be "
707 "executed as the user who owns the crontab\\&. Uucp and News will usually "
708 "have their own crontabs, eliminating the need for explicitly running "
709 "B<su>(1) as part of a cron command\\&."
710 msgstr ""
711
712 #. type: Plain text
713 #: debian-trixie debian-unstable
714 msgid ""
715 "Note that comments on the same line as cron commands are not interpreted as "
716 "comments in the cron sense, but are considered part of the command and "
717 "passed to the shell\\&. This is similarly true for comments on the same line "
718 "as environment variable settings\\&."
719 msgstr ""
720
721 #. type: Plain text
722 #: debian-trixie debian-unstable
723 msgid ""
724 "An active line in a crontab will be either an environment setting or a cron "
725 "command\\&. An environment setting is of the form,"
726 msgstr ""
727
728 #. type: Plain text
729 #: debian-trixie debian-unstable
730 #, no-wrap
731 msgid "name = value\n"
732 msgstr ""
733
734 #. type: Plain text
735 #: debian-trixie debian-unstable
736 msgid ""
737 "where the spaces around the equal-sign (=) are optional, and any subsequent "
738 "non-leading spaces in I<value> will be part of the value assigned to "
739 "I<name>\\&. The I<value> string may be placed in quotes (single or double, "
740 "but matching) to preserve leading or trailing blanks\\&. To define an empty "
741 "variable, quotes can be used\\&."
742 msgstr ""
743
744 #. type: Plain text
745 #: debian-trixie debian-unstable
746 msgid ""
747 "The I<value> string is not parsed for environmental substitutions or "
748 "replacement of variables or tilde(~) expansion, thus lines like"
749 msgstr ""
750
751 #. type: Plain text
752 #: debian-trixie debian-unstable
753 #, no-wrap
754 msgid ""
755 "PATH=$HOME/bin:$PATH\n"
756 "PATH=~/bin:/usr/bin\n"
757 "\t\n"
758 msgstr ""
759
760 #. type: Plain text
761 #: debian-trixie debian-unstable
762 msgid "will not work as you might expect\\&. And neither will this work\\&."
763 msgstr ""
764
765 #. type: Plain text
766 #: debian-trixie debian-unstable
767 #, no-wrap
768 msgid ""
769 "A=1\n"
770 "B=2\n"
771 "C=$A $B\n"
772 "\t\n"
773 msgstr ""
774
775 #. type: Plain text
776 #: debian-trixie debian-unstable
777 msgid ""
778 "There will not be any substitution for the defined variables in the last "
779 "value\\&. However, with most shells you can also try e\\&.g\\&.,:"
780 msgstr ""
781
782 #. type: Plain text
783 #: debian-trixie debian-unstable
784 #, no-wrap
785 msgid ""
786 "P=PATH=/a/b/c:$PATH\n"
787 "33 22 1 2 3 eval $P && some commands\n"
788 "\t\n"
789 msgstr ""
790
791 #. type: Plain text
792 #: debian-trixie debian-unstable
793 msgid ""
794 "Several environment variables are set up automatically by the B<cron>(8) "
795 "daemon\\&. I<SHELL> is set to I</usr/bin/sh>, and I<LOGNAME> and I<HOME> "
796 "are set from the I</etc/passwd> line of the crontab\\*(Aqs owner\\&. "
797 "I<HOME> and I<SHELL> may be overridden by settings in the crontab; "
798 "I<LOGNAME> may not\\&."
799 msgstr ""
800
801 #. type: Plain text
802 #: debian-trixie debian-unstable
803 msgid ""
804 "(Another note: the I<LOGNAME> variable is sometimes called I<USER> on BSD "
805 "systems\\&.\\&.\\&. on these systems, I<USER> will be set also\\&.)"
806 msgstr ""
807
808 #. type: Plain text
809 #: debian-trixie debian-unstable
810 msgid ""
811 "In addition to I<LOGNAME>, I<HOME>, and I<SHELL>, B<cron>(8) will look at "
812 "I<MAILTO> if it has any reason to send mail as a result of running commands "
813 "in \\(lqthis\\(rq crontab\\&. If I<MAILTO> is defined (and non-empty), mail "
814 "is sent to the user so named\\&. IfI< MAILTO> is defined but empty "
815 "(MAILTO=\"\"), no mail will be sent\\&. Otherwise mail is sent to the owner "
816 "of the crontab\\&. This option is useful if you decide on B</usr/bin/mail> "
817 "instead of B</usr/lib/sendmail> as your mailer when you install cron -- B</"
818 "usr/bin/mail> doesn\\*(Aqt do aliasing, and UUCP usually doesn\\*(Aqt read "
819 "its mail\\&."
820 msgstr ""
821
822 #. type: Plain text
823 #: debian-trixie debian-unstable
824 msgid ""
825 "The format of a cron command is very much the V7 standard, with a number of "
826 "upward-compatible extensions\\&. Each line has five time and date fields, "
827 "followed by a command, followed by a newline character (\\*(Aq\\en\\*(Aq)"
828 "\\&. The system crontab (I</etc/crontab>) uses the same format, except that "
829 "the username for the command is specified after the time and date fields and "
830 "before the command\\&. The fields may be separated by spaces or tabs\\&. The "
831 "maximum permitted length for the command field is 998 characters\\&."
832 msgstr ""
833
834 #. type: Plain text
835 #: debian-trixie debian-unstable
836 msgid ""
837 "Commands are executed by B<cron>(8) when the minute, hour, and month of "
838 "year fields match the current time, and when at least one of the two day "
839 "fields (day of month, or day of week) match the current time (see \\(lqNote\\"
840 "(rq below)\\&. B<cron>(8) examines cron entries once every minute\\&. The "
841 "time and date fields are:"
842 msgstr ""
843
844 #. type: tbl table
845 #: debian-trixie debian-unstable
846 #, no-wrap
847 msgid "field"
848 msgstr ""
849
850 #. type: tbl table
851 #: debian-trixie
852 #, no-wrap
853 msgid "allowed values"
854 msgstr ""
855
856 #. type: tbl table
857 #: debian-trixie debian-unstable
858 #, no-wrap
859 msgid ".T&"
860 msgstr ""
861
862 #. type: tbl table
863 #: debian-trixie debian-unstable
864 #, no-wrap
865 msgid "l l"
866 msgstr ""
867
868 #. type: tbl table
869 #: debian-trixie debian-unstable
870 #, no-wrap
871 msgid "l l."
872 msgstr ""
873
874 #. type: tbl table
875 #: debian-trixie debian-unstable
876 #, no-wrap
877 msgid "minute"
878 msgstr ""
879
880 #. type: tbl table
881 #: debian-trixie debian-unstable
882 #, no-wrap
883 msgid "0-59"
884 msgstr ""
885
886 #. type: tbl table
887 #: debian-trixie debian-unstable
888 #, no-wrap
889 msgid "hour"
890 msgstr ""
891
892 #. type: tbl table
893 #: debian-trixie debian-unstable
894 #, no-wrap
895 msgid "0-23"
896 msgstr ""
897
898 #. type: tbl table
899 #: debian-trixie debian-unstable
900 #, no-wrap
901 msgid "day of month"
902 msgstr ""
903
904 #. type: tbl table
905 #: debian-trixie
906 #, no-wrap
907 msgid "0-31"
908 msgstr ""
909
910 #. type: tbl table
911 #: debian-trixie debian-unstable
912 #, no-wrap
913 msgid "month"
914 msgstr ""
915
916 #. type: tbl table
917 #: debian-trixie
918 #, no-wrap
919 msgid "0-12 (or names, see below)"
920 msgstr ""
921
922 #. type: tbl table
923 #: debian-trixie debian-unstable
924 #, no-wrap
925 msgid "day of week"
926 msgstr ""
927
928 #. type: tbl table
929 #: debian-trixie debian-unstable
930 #, no-wrap
931 msgid "0-7 (0 or 7 is Sun, or use names)"
932 msgstr ""
933
934 #. type: Plain text
935 #: debian-trixie debian-unstable
936 msgid ""
937 "A field may be an asterisk (*), which always stands for \\(lqfirst-last\\"
938 "(rq\\&."
939 msgstr ""
940
941 #. type: Plain text
942 #: debian-trixie debian-unstable
943 msgid ""
944 "Ranges of numbers are allowed\\&. Ranges are two numbers separated with a "
945 "hyphen\\&. The specified range is inclusive\\&. For example, 8-11 for an \\"
946 "(lqhours\\(rq entry specifies execution at hours 8, 9, 10 and 11\\&."
947 msgstr ""
948
949 #. type: Plain text
950 #: debian-trixie debian-unstable
951 msgid ""
952 "Lists are allowed\\&. A list is a set of numbers (or ranges) separated by "
953 "commas\\&. Examples: \\(lq1,2,5,9\\(rq, \\(lq0-4,8-12\\(rq\\&."
954 msgstr ""
955
956 #. type: Plain text
957 #: debian-trixie debian-unstable
958 msgid ""
959 "Step values can be used in conjunction with ranges\\&. Following a range "
960 "with \\(lq/E<lt>numberE<gt>\\(rq specifies skips of the number\\*(Aqs value "
961 "through the range\\&. For example, \\(lq0-23/2\\(rq can be used in the hours "
962 "field to specify command execution every other hour (the alternative in the "
963 "V7 standard is \\(lq0,2,4,6,8,10,12,14,16,18,20,22\\(rq)\\&. Steps are also "
964 "permitted after an asterisk, so if you want to say \\(lqevery two hours\\"
965 "(rq, just use \\(lq*/2\\(rq\\&."
966 msgstr ""
967
968 #. type: Plain text
969 #: debian-trixie
970 msgid ""
971 "Names can also be used for the \\(lqmonth\\(rq and \\(lqday of week\\(rq "
972 "fields\\&. Use the first three letters of the particular day or month (case "
973 "doesn\\*(Aqt matter)\\&. Ranges or lists of names are not allowed\\&."
974 msgstr ""
975
976 #. type: Plain text
977 #: debian-trixie debian-unstable
978 msgid ""
979 "The \\(lqsixth\\(rq field (the rest of the line) specifies the command to be "
980 "run\\&. The entire command portion of the line, up to a newline or % "
981 "character, will be executed by B</usr/bin/sh> or by the shell specified in "
982 "the I<SHELL> variable of the cronfile\\&. Percent-signs (%) in the command, "
983 "unless escaped with backslash (\\e), will be changed into newline "
984 "characters, and all data after the first % will be sent to the command as "
985 "standard input\\&."
986 msgstr ""
987
988 #. type: Plain text
989 #: debian-trixie debian-unstable
990 msgid ""
991 "Note: The day of a command\\*(Aqs execution can be specified by two fields \\"
992 "(em day of month, and day of week\\&. If both fields are restricted "
993 "(i\\&.e\\&., aren\\*(Aqt *), the command will be run when either field "
994 "matches the current time\\&. For example, \\(lq30 4 1,15 * 5\\(rq would "
995 "cause a command to be run at 4:30 am on the 1st and 15th of each month, plus "
996 "every Friday\\&. One can, however, achieve the desired result by adding a "
997 "test to the command (see the last example in EXAMPLE CRON FILE below)\\&."
998 msgstr ""
999
1000 #. type: Plain text
1001 #: debian-trixie debian-unstable
1002 msgid ""
1003 "Instead of the first five fields, one of eight special strings may appear:"
1004 msgstr ""
1005
1006 #. type: tbl table
1007 #: debian-trixie debian-unstable
1008 #, no-wrap
1009 msgid "string"
1010 msgstr ""
1011
1012 #. type: tbl table
1013 #: debian-trixie
1014 #, no-wrap
1015 msgid "meaning"
1016 msgstr ""
1017
1018 #. type: tbl table
1019 #: debian-trixie debian-unstable
1020 #, no-wrap
1021 msgid "@reboot"
1022 msgstr ""
1023
1024 #. type: tbl table
1025 #: debian-trixie debian-unstable
1026 #, no-wrap
1027 msgid "Run once, at startup\\&."
1028 msgstr ""
1029
1030 #. type: tbl table
1031 #: debian-trixie debian-unstable
1032 #, no-wrap
1033 msgid "@yearly"
1034 msgstr ""
1035
1036 #. type: tbl table
1037 #: debian-trixie debian-unstable
1038 #, no-wrap
1039 msgid "Run once a year, \"0 0 1 1 *\"\\&."
1040 msgstr ""
1041
1042 #. type: tbl table
1043 #: debian-trixie debian-unstable
1044 #, no-wrap
1045 msgid "@annually"
1046 msgstr ""
1047
1048 #. type: tbl table
1049 #: debian-trixie debian-unstable
1050 #, no-wrap
1051 msgid "(same as @yearly)"
1052 msgstr ""
1053
1054 #. type: tbl table
1055 #: debian-trixie debian-unstable
1056 #, no-wrap
1057 msgid "@monthly"
1058 msgstr ""
1059
1060 #. type: tbl table
1061 #: debian-trixie debian-unstable
1062 #, no-wrap
1063 msgid "Run once a month, \"0 0 1 * *\"\\&."
1064 msgstr ""
1065
1066 #. type: tbl table
1067 #: debian-trixie debian-unstable
1068 #, no-wrap
1069 msgid "@weekly"
1070 msgstr ""
1071
1072 #. type: tbl table
1073 #: debian-trixie debian-unstable
1074 #, no-wrap
1075 msgid "Run once a week, \"0 0 * * 0\"\\&."
1076 msgstr ""
1077
1078 #. type: tbl table
1079 #: debian-trixie debian-unstable
1080 #, no-wrap
1081 msgid "@daily"
1082 msgstr ""
1083
1084 #. type: tbl table
1085 #: debian-trixie debian-unstable
1086 #, no-wrap
1087 msgid "Run once a day, \"0 0 * * *\"\\&."
1088 msgstr ""
1089
1090 #. type: tbl table
1091 #: debian-trixie debian-unstable
1092 #, no-wrap
1093 msgid "@midnight"
1094 msgstr ""
1095
1096 #. type: tbl table
1097 #: debian-trixie debian-unstable
1098 #, no-wrap
1099 msgid "(same as @daily)"
1100 msgstr ""
1101
1102 #. type: tbl table
1103 #: debian-trixie debian-unstable
1104 #, no-wrap
1105 msgid "@hourly"
1106 msgstr ""
1107
1108 #. type: tbl table
1109 #: debian-trixie debian-unstable
1110 #, no-wrap
1111 msgid "Run once an hour, \"0 * * * *\"\\&."
1112 msgstr ""
1113
1114 #. type: Plain text
1115 #: debian-trixie debian-unstable
1116 msgid ""
1117 "Please note that startup, as far as @reboot is concerned, is the time when "
1118 "the B<cron>(8) daemon startup\\&. In particular, it may be before some "
1119 "system daemons, or other facilities, were startup\\&. This is due to the "
1120 "boot order sequence of the machine\\&."
1121 msgstr ""
1122
1123 #. type: Plain text
1124 #: debian-trixie debian-unstable
1125 #, no-wrap
1126 msgid ""
1127 "# use /usr/bin/sh to run commands, no matter what /etc/passwd says\n"
1128 "SHELL=/usr/bin/sh\n"
1129 "# mail any output to `paul\\*(Aq, no matter whose crontab this is\n"
1130 "MAILTO=paul\n"
1131 "#\n"
1132 "# run five minutes after midnight, every day\n"
1133 "5 0 * * * $HOME/bin/daily\\&.job E<gt>E<gt> $HOME/tmp/out 2E<gt>&1\n"
1134 "# run at 2:15pm on the first of every month -- output mailed to paul\n"
1135 "15 14 1 * * $HOME/bin/monthly\n"
1136 "# run at 10 pm on weekdays, annoy Joe\n"
1137 "0 22 * * 1-5 mail -s \"It\\*(Aqs 10pm\" joe%Joe,%%Where are your kids?%\n"
1138 "23 0-23/2 * * * echo \"run 23 minutes after midn, 2am, 4am \\&.\\&.\\&., everyday\"\n"
1139 "5 4 * * sun echo \"run at 5 after 4 every Sunday\"\n"
1140 "0 */4 1 * mon echo \"run every 4th hour on the 1st and on every Monday\"\n"
1141 "0 0 */2 * sun echo \"run at midn on every Sunday that\\*(Aqs an uneven date\"\n"
1142 "# Run on every second Saturday of the month\n"
1143 "0 4 8-14 * * test $(date +\\e%u) -eq 6 && echo \"2nd Saturday\"\n"
1144 "# Same thing, efficient too:\n"
1145 "0 4 * * * Sat d=$(date +e) && test $d -ge 8 -a $d -le 14 && echo \"2nd Saturday\"\n"
1146 "#Execute early the next morning following the first\n"
1147 "#Thursday of each month\n"
1148 "57 2 * * 5 case $(date +d) in 0[2-8]) echo \"After 1st Thursday\"; esac\n"
1149 msgstr ""
1150
1151 #. type: Plain text
1152 #: debian-trixie debian-unstable
1153 msgid ""
1154 "All the above examples run non-interactive programs\\&. If you wish to run a "
1155 "program that interacts with the user\\*(Aqs desktop you have to make sure "
1156 "the proper environment variable I<DISPLAY> is set\\&."
1157 msgstr ""
1158
1159 #. type: Plain text
1160 #: debian-trixie debian-unstable
1161 #, no-wrap
1162 msgid ""
1163 "# Execute a program and run a notification every day at 10:00 am\n"
1164 "0 10 * * * $HOME/bin/program | DISPLAY=:0 notify-send \"Program run\" \"$(cat)\"\n"
1165 msgstr ""
1166
1167 #. type: SH
1168 #: debian-trixie debian-unstable
1169 #, no-wrap
1170 msgid "EXAMPLE SYSTEM CRON FILE"
1171 msgstr ""
1172
1173 #. type: Plain text
1174 #: debian-trixie debian-unstable
1175 msgid ""
1176 "The following lists the content of a regular system-wide crontab file\\&. "
1177 "Unlike a user\\*(Aqs crontab, this file has the username field, as used by "
1178 "I</etc/crontab>\\&."
1179 msgstr ""
1180
1181 #. type: Plain text
1182 #: debian-trixie debian-unstable
1183 #, no-wrap
1184 msgid ""
1185 "# /etc/crontab: system-wide crontab\n"
1186 "# Unlike any other crontab you don\\*(Aqt have to run the `crontab\\*(Aq\n"
1187 "# command to install the new version when you edit this file\n"
1188 "# and files in /etc/cron\\&.d\\&. These files also have username fields,\n"
1189 "# that none of the other crontabs do\\&.\n"
1190 msgstr ""
1191
1192 #. type: Plain text
1193 #: debian-trixie debian-unstable
1194 #, no-wrap
1195 msgid ""
1196 "SHELL=/bin/sh\n"
1197 "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\n"
1198 msgstr ""
1199
1200 #. type: Plain text
1201 #: debian-trixie debian-unstable
1202 #, no-wrap
1203 msgid ""
1204 "# Example of job definition:\n"
1205 "# \\&.---------------- minute (0 - 59)\n"
1206 "# | \\&.------------- hour (0 - 23)\n"
1207 "# | | \\&.---------- day of month (1 - 31)\n"
1208 "# | | | \\&.------- month (1 - 12) OR jan,feb,mar,apr \\&.\\&.\\&.\n"
1209 "# | | | | \\&.---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat\n"
1210 "# m h dom mon dow usercommand\n"
1211 "17 * * * * root cd / && run-parts --report /etc/cron\\&.hourly\n"
1212 "25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron\\&.daily )\n"
1213 "47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron\\&.weekly )\n"
1214 "52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron\\&.monthly )\n"
1215 "#\n"
1216 msgstr ""
1217
1218 #. type: Plain text
1219 #: debian-trixie debian-unstable
1220 msgid ""
1221 "Note that all the system-wide tasks will run, by default, from 6 am to 7 "
1222 "am\\&. In the case of systems that are not powered on during that period of "
1223 "time, only the hourly tasks will be executed unless the defaults above are "
1224 "changed\\&."
1225 msgstr ""
1226
1227 #. type: SH
1228 #: debian-trixie debian-unstable
1229 #, no-wrap
1230 msgid "YET ANOTHER EXAMPLE"
1231 msgstr ""
1232
1233 #. type: Plain text
1234 #: debian-trixie debian-unstable
1235 msgid ""
1236 "In that example one can see that numbers can be prepended some 0, in order "
1237 "to line up columns\\&."
1238 msgstr ""
1239
1240 #. type: Plain text
1241 #: debian-trixie debian-unstable
1242 #, no-wrap
1243 msgid ""
1244 "17 * * * * root cd / && run-parts --report /etc/cron\\&.hourly\n"
1245 "25 16 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron\\&.daily )\n"
1246 "47 06 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron\\&.weekly )\n"
1247 "52 06 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron\\&.monthly )\n"
1248 msgstr ""
1249
1250 #. type: Plain text
1251 #: debian-trixie debian-unstable
1252 msgid ""
1253 "When specifying day of week, both day 0 and day 7 will be considered "
1254 "Sunday\\&. BSD and AT&T seem to disagree about this\\&."
1255 msgstr ""
1256
1257 #. type: Plain text
1258 #: debian-trixie debian-unstable
1259 msgid ""
1260 "Lists and ranges are allowed to co-exist in the same field\\&. \"1-3,7-9\" "
1261 "would be rejected by AT&T or BSD cron -- they want to see \"1-3\" or "
1262 "\"7,8,9\" ONLY\\&."
1263 msgstr ""
1264
1265 #. type: Plain text
1266 #: debian-trixie debian-unstable
1267 msgid ""
1268 "Ranges can include \"steps\", so \"1-9/2\" is the same as \"1,3,5,7,9\"\\&."
1269 msgstr ""
1270
1271 #. type: Plain text
1272 #: debian-trixie debian-unstable
1273 msgid "Names of months or days of the week can be specified by name\\&."
1274 msgstr ""
1275
1276 #. type: Plain text
1277 #: debian-trixie debian-unstable
1278 msgid ""
1279 "Environment variables can be set in the crontab\\&. In BSD or AT&T, the "
1280 "environment handed to child processes is basically the one from I</etc/"
1281 "rc>\\&."
1282 msgstr ""
1283
1284 #. type: Plain text
1285 #: debian-trixie debian-unstable
1286 msgid ""
1287 "Command output is mailed to the crontab owner (BSD can\\*(Aqt do this), can "
1288 "be mailed to a person other than the crontab owner (SysV can\\*(Aqt do "
1289 "this), or the feature can be turned off and no mail will be sent at all "
1290 "(SysV can\\*(Aqt do this either)\\&."
1291 msgstr ""
1292
1293 #. type: Plain text
1294 #: debian-trixie debian-unstable
1295 msgid ""
1296 "All of the \\(lq@\\(rq commands that can appear in place of the first five "
1297 "fields are extensions\\&."
1298 msgstr ""
1299
1300 #. type: SH
1301 #: debian-trixie debian-unstable
1302 #, no-wrap
1303 msgid "LIMITATIONS"
1304 msgstr ""
1305
1306 #. type: Plain text
1307 #: debian-trixie debian-unstable
1308 msgid ""
1309 "The B<cron> daemon runs with a defined timezone\\&. It currently does not "
1310 "support per-user timezones\\&. All the tasks: system\\*(Aqs and user\\*(Aqs "
1311 "will be run based on the configured timezone\\&. Even if a user specifies "
1312 "the I<TZ> environment variable in his crontab this will affect only the "
1313 "commands executed in the crontab, not the execution of the crontab tasks "
1314 "themselves\\&. If one wants to specify a particular timezone for crontab "
1315 "tasks, one may check the date in the child script, for example:"
1316 msgstr ""
1317
1318 #. type: Plain text
1319 #: debian-trixie debian-unstable
1320 #, no-wrap
1321 msgid "# m h dom mon dow command\n"
1322 msgstr ""
1323
1324 #. type: Plain text
1325 #: debian-trixie debian-unstable
1326 #, no-wrap
1327 msgid ""
1328 "TZ=UTC\n"
1329 "0 * * * * [ \"$(date +\\e%R)\" = 00:00 ] && run_some_script\n"
1330 msgstr ""
1331
1332 #. type: Plain text
1333 #: debian-trixie debian-unstable
1334 msgid ""
1335 "POSIX specifies that the day of month and the day of week fields both need "
1336 "to match the current time if either of them I<is> a *\\&. However, this "
1337 "implementation only checks if the I<first character> is a *\\&. This is why "
1338 "\"0 0 */2 * sun\" runs every Sunday that\\*(Aqs an uneven date while the "
1339 "POSIX standard would have it run every Sunday and on every uneven date\\&."
1340 msgstr ""
1341
1342 #. type: Plain text
1343 #: debian-trixie debian-unstable
1344 msgid ""
1345 "The B<crontab> syntax does not make it possible to define all possible "
1346 "periods one can imagine\\&. For example, it is not straightforward to define "
1347 "the last weekday of a month\\&. To have a task run in a time period that "
1348 "cannot be defined using I<crontab> syntax, the best approach would be to "
1349 "have the program itself check the date and time information and continue "
1350 "execution only if the period matches the desired one\\&."
1351 msgstr ""
1352
1353 #. type: Plain text
1354 #: debian-trixie debian-unstable
1355 msgid ""
1356 "If the program itself cannot do the checks then a wrapper script would be "
1357 "required\\&. Useful tools that could be used for date analysis are "
1358 "B<ncal>(1) or B<calendar>(1)\\&. For example, to run a program the last "
1359 "Saturday of every month you could use the following wrapper code:"
1360 msgstr ""
1361
1362 #. type: Plain text
1363 #: debian-trixie debian-unstable
1364 #, no-wrap
1365 msgid "0 4 * * Sat [ \"$(date +\\e%e)\" = \"$(LANG=C ncal | sed -n \\*(Aqs/^Sa \\&.* \\e([0-9]\\e+\\e) *$/\\e1/p\\*(Aq)\" ] && echo \"Last Saturday\" && program_to_run\n"
1366 msgstr ""
1367
1368 #. type: SH
1369 #: debian-trixie debian-unstable
1370 #, no-wrap
1371 msgid "USING EVAL TO WRAP MISC ENVIRONMENT SETTINGS"
1372 msgstr ""
1373
1374 #. type: Plain text
1375 #: debian-trixie debian-unstable
1376 msgid "The following tip is kindly provided by 積丹尼 Dan Jacobson:"
1377 msgstr ""
1378
1379 #. type: Plain text
1380 #: debian-trixie debian-unstable
1381 #, no-wrap
1382 msgid ""
1383 "CONTENT_TYPE=\"text/plain; charset=UTF-8\"\n"
1384 "d=eval LANG=zh_TW\\&.UTF-8 w3m -dump\n"
1385 "26 22 16 1-12 * $d https://www\\&.ptt\\&.cc/bbs/transgender/index\\&.html\n"
1386 msgstr ""
1387
1388 #. type: Plain text
1389 #: debian-trixie debian-unstable
1390 msgid "it won\\*(Aqt work without the eval\\&. Saying"
1391 msgstr ""
1392
1393 #. type: Plain text
1394 #: debian-trixie debian-unstable
1395 #, no-wrap
1396 msgid "d=LANG=zh_TW\\&.UTF-8 w3m -dump\n"
1397 msgstr ""
1398
1399 #. type: Plain text
1400 #: debian-trixie debian-unstable
1401 msgid "will get"
1402 msgstr ""
1403
1404 #. type: Plain text
1405 #: debian-trixie debian-unstable
1406 #, no-wrap
1407 msgid "/bin/sh: LANG=zh_TW\\&.UTF-8: command not found\n"
1408 msgstr ""
1409
1410 #. type: SH
1411 #: debian-trixie debian-unstable
1412 #, no-wrap
1413 msgid "DIAGNOSTICS"
1414 msgstr ""
1415
1416 #. type: Plain text
1417 #: debian-trixie debian-unstable
1418 msgid ""
1419 "cron requires that each entry in a crontab end in a newline character\\&. If "
1420 "the last entry in a crontab is missing a newline (i\\&.e\\&. terminated by "
1421 "EOF), cron will consider the crontab (at least partially) broken\\&. A "
1422 "warning will be written to syslog\\&."
1423 msgstr ""
1424
1425 #. type: SH
1426 #: debian-trixie debian-unstable
1427 #, no-wrap
1428 msgid "AUTHORS"
1429 msgstr ""
1430
1431 #. type: Plain text
1432 #: debian-trixie debian-unstable
1433 msgid "B<Paul Vixie> E<lt>\\&paul@vix\\&.com\\&E<gt>"
1434 msgstr ""
1435
1436 #. type: Plain text
1437 #: debian-trixie debian-unstable
1438 msgid "Wrote this manpage (1994)\\&."
1439 msgstr ""
1440
1441 #. type: Plain text
1442 #: debian-trixie debian-unstable
1443 msgid "B<Steve Greenland> E<lt>\\&stevegr@debian\\&.org\\&E<gt>"
1444 msgstr ""
1445
1446 #. type: Plain text
1447 #: debian-trixie debian-unstable
1448 msgid "Maintained the package (1996-2005)\\&."
1449 msgstr ""
1450
1451 #. type: Plain text
1452 #: debian-trixie debian-unstable
1453 msgid ""
1454 "B<Javier Fern\\('andez-Sanguino Pe\\(~na> E<lt>\\&jfs@debian\\&.org\\&E<gt>"
1455 msgstr ""
1456
1457 #. type: Plain text
1458 #: debian-trixie debian-unstable
1459 msgid "Maintained the package (2005-2014)\\&."
1460 msgstr ""
1461
1462 #. type: Plain text
1463 #: debian-trixie debian-unstable
1464 msgid "B<Christian Kastner> E<lt>\\&ckk@debian\\&.org\\&E<gt>"
1465 msgstr ""
1466
1467 #. type: Plain text
1468 #: debian-trixie debian-unstable
1469 msgid "Maintained the package (2010-2016)\\&."
1470 msgstr ""
1471
1472 #. type: Plain text
1473 #: debian-trixie debian-unstable
1474 msgid "B<Georges Khaznadar> E<lt>\\&georgesk@debian\\&.org\\&E<gt>"
1475 msgstr ""
1476
1477 #. type: Plain text
1478 #: debian-trixie debian-unstable
1479 msgid "Maintained the package (2022-2024)\\&."
1480 msgstr ""
1481
1482 #. type: SH
1483 #: debian-trixie debian-unstable
1484 #, no-wrap
1485 msgid "COPYRIGHT"
1486 msgstr ""
1487
1488 #. type: Plain text
1489 #: debian-trixie debian-unstable
1490 msgid "Copyright \\(co 1994 Paul Vixie"
1491 msgstr ""
1492
1493 #. type: Plain text
1494 #: debian-trixie debian-unstable
1495 msgid ""
1496 "Distribute freely, except: don\\*(Aqt remove my name from the source or "
1497 "documentation (don\\*(Aqt take credit for my work), mark your changes "
1498 "(don\\*(Aqt get me blamed for your possible bugs), don\\*(Aqt alter or "
1499 "remove this notice\\&. May be sold if buildable source is provided to "
1500 "buyer\\&. No warranty of any kind, express or implied, is included with this "
1501 "software; use at your own risk, responsibility for damages (if any) to "
1502 "anyone resulting from the use of this software rests entirely with the "
1503 "user\\&."
1504 msgstr ""
1505
1506 #. type: Plain text
1507 #: debian-trixie
1508 msgid ""
1509 "Since year 1994, many modifications were made in this manpage, authored by "
1510 "Debian Developers which maintained cron; above is a short list, more "
1511 "information can be found in the file I</usr/share/doc/cron/copyright>\\&."
1512 msgstr ""
1513
1514 #. type: TH
1515 #: debian-unstable
1516 #, no-wrap
1517 msgid "2026-04-27"
1518 msgstr ""
1519
1520 #. type: tbl table
1521 #: debian-unstable
1522 #, no-wrap
1523 msgid "allowed\\ \\&values\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&"
1524 msgstr ""
1525
1526 #. type: tbl table
1527 #: debian-unstable
1528 #, no-wrap
1529 msgid "1-31"
1530 msgstr ""
1531
1532 #. type: tbl table
1533 #: debian-unstable
1534 #, no-wrap
1535 msgid "1-12 (or names, see below)"
1536 msgstr ""
1537
1538 #. type: Plain text
1539 #: debian-unstable
1540 msgid ""
1541 "Names can also be used for the \\(lqmonth\\(rq and \\(lqday of week\\(rq "
1542 "fields\\&. Use the first three letters of the particular day or month (case "
1543 "doesn\\*(Aqt matter)\\&. Examples for the month are: \\(lqJan-Mar\\(rq or \\"
1544 "(lqJan,Mar\\(rq \\&. Examples for the day of week are; \\(lqMon-Wed\\(rq or "
1545 "\\(lqMon-Wed\\(rq\\&. Names are in English language\\&."
1546 msgstr ""
1547
1548 #. type: tbl table
1549 #: debian-unstable
1550 #, no-wrap
1551 msgid "meaning\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&\\ \\&"
1552 msgstr ""
1553
1554 #. type: Plain text
1555 #: debian-unstable
1556 msgid ""
1557 "The maximum permitted length for the command field is 998 characters\\&."
1558 msgstr ""
1559
1560 #. type: Plain text
1561 #: debian-unstable
1562 msgid ""
1563 "The recommended length should be less than 80 characters, like lines in "
1564 "readable source files\\&. When one must use a long command, it is worth "
1565 "creating a dedicated script, which in turn can contain valuable comments\\&."
1566 msgstr ""
1567
1568 #. type: Plain text
1569 #: debian-unstable
1570 msgid ""
1571 "Since year 1994, many modifications were made in this manpage, authored by "
1572 "Debian Developers which maintained cron(TM); above is a short list, more "
1573 "information can be found in the file I</usr/share/doc/cron/copyright>\\&."
1574 msgstr ""
1575
1576 #. type: Plain text
1577 #: fedora-44 fedora-rawhide
1578 msgid ""
1579 "The I<XDG_SESSION_CLASS> variable specifies the session class to be used "
1580 "when PAM creates a systemd session for the cron job. If set (e.g., to "
1581 "\"background-light\"), this value is forwarded to the PAM environment so "
1582 "that B<pam_systemd>(8) can use it for session classification. This allows "
1583 "cron jobs to run in lighter-weight sessions that consume fewer system "
1584 "resources. This variable has no effect if crond was built without PAM "
1585 "support."
1586 msgstr ""