date and time created 87/02/15 16:03:31 by lepreau
[unix-history] / usr / src / usr.sbin / cron / cron.8
index 30168d2..a3dbd0d 100644 (file)
@@ -1,6 +1,6 @@
-.\"    @(#)cron.8      5.1 (Berkeley) %G%
+.\"    @(#)cron.8      6.5 (Berkeley) %G%
 .\"
 .\"
-.TH CRON 8  "4 February 1983"
+.TH CRON 8 ""
 .AT 3
 .SH NAME
 cron \- clock daemon
 .AT 3
 .SH NAME
 cron \- clock daemon
@@ -9,8 +9,9 @@ cron \- clock daemon
 .SH DESCRIPTION
 .I Cron
 executes commands at specified dates and times
 .SH DESCRIPTION
 .I Cron
 executes commands at specified dates and times
-according to the instructions in the file
-/usr/lib/crontab.
+according to the instructions in the files
+/usr/lib/crontab and /usr/lib/crontab.local.
+None, either one, or both of these files may be present.
 Since
 .I cron
 never exits,
 Since
 .I cron
 never exits,
@@ -23,37 +24,70 @@ process through the file
 see
 .IR init (8).
 .PP
 see
 .IR init (8).
 .PP
-Crontab
-consists of lines of six fields each.
+The
+crontab files
+consist of lines of seven fields each.
 The fields are separated by spaces or tabs.
 The fields are separated by spaces or tabs.
-The first five are integer patterns to
-specify the
-minute (0-59),
-hour (0-23),
-day of the month (1-31),
-month of the year (1-12),
-and day of the week (1-7 with 1=Monday).
-Each of these patterns may
-contain a number in the range above;
-two numbers separated by
-a minus
-meaning a range inclusive;
+The first five are integer patterns to specify:
+.in +2m
+.TP 2m
+\(bu
+minute (0-59)
+.nr .0 \n()Pu
+.nr )P 0
+.TP 2m
+\(bu
+hour (0-23)
+.TP 2m
+\(bu
+day of the month (1-31)
+.TP 2m
+\(bu
+month of the year (1-12)
+.TP 2m
+\(bu
+day of the week (1-7 with 1 = Monday)
+.nr )P \n(.0u
+.in -2m
+.LP
+Each of these patterns may contain:
+.in +2m
+.TP 2m
+\(bu
+a number in the range above
+.nr .0 \n()Pu
+.nr )P 0
+.TP 2m
+\(bu
+two numbers separated by a minus
+meaning a range inclusive
+.TP 2m
+\(bu
 a list of numbers separated by
 a list of numbers separated by
-commas meaning any of the numbers;
-or an asterisk meaning all legal values.
-The sixth field is a string
-that is executed by the Shell at the
+commas meaning any of the numbers
+.TP 2m
+\(bu
+an asterisk meaning all legal values
+.nr )P \n(.0u
+.in -2m
+.LP
+The sixth field is a user name: the
+command will be run with that user's uid and permissions.
+The seventh field consists of all the text
+on a line following the sixth field,
+including spaces and tabs;
+this text is treated as a command
+which is executed by the Shell at the
 specified times.
 specified times.
-A percent character
+A percent character (``%'')
 in this field is translated to a new-line
 character.
 in this field is translated to a new-line
 character.
-Only the first line (up to a % or end of line)
-of the command field is executed by the Shell.
-The other lines are made available to the
-command as standard input.
 .PP
 .PP
-Crontab is examined by
+Both
+crontab files are checked by
 .I cron
 .I cron
-every minute.
+every minute, on the minute.
 .SH FILES
 /usr/lib/crontab
 .SH FILES
 /usr/lib/crontab
+.br
+/usr/lib/crontab.local