summaryrefslogtreecommitdiff
path: root/static/unix-v10/man8/cron.8
blob: 3a58416fcfb236bb8b39f36d776164e6ec04b83c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
.TH CRON 8
.CT 1 sa_auto
.SH NAME
cron \- clock daemon
.SH SYNOPSIS
.B /etc/cron
.SH DESCRIPTION
.I Cron
executes commands at specified dates and times
according to the instructions in the file
.FR /etc/crontab .
It should be run once from
.IR rc (8).
.PP
.I Crontab
entries are lines of seven fields separated by blanks or tabs:
.IP
.I
login minute hour day month weekday command
.PP
.I Login
is the login name under
whose userid and groupid
the command should be executed.
The next five fields are integer patterns for
.PD0
.RS
.TP \w'day\ of\ month\ \ 'u
minute
0-59
.TP
hour
0-23
.TP
day of month
1-31
.TP
month of year
1-12
.TP
day of week
0-6; 0=Sunday
.PD
.RE
.PP
Each pattern may
contain a number in the range above;
two numbers separated by
a hyphen
meaning an inclusive range;
a list of numbers separated by
commas meaning any of the numbers;
or an asterisk meaning all legal values.
.PP
The last field is a string
to be executed by the shell,
after replacing
.L %
with newline.
.PP
It is wise to spread the times of activities to avoid
bogging the system down at favorite hours.
.PP
.I Cron
examines
.I crontab
every minute.
.SH EXAMPLES
.EX
daemon 17 3  *     *  *   /usr/bin/calendar - # reminders at 0317
adm    15 4  1,15  *  *   ac -p | mail adm # bimonthly accounts
root 0  12 22-28 11 4   /etc/wall Time for Thanksgiving dinner
.EE
.SH FILES
.F /etc/crontab
.SH SEE ALSO
.IR at (1)
.SH BUGS
The behavior of 
.L %
in
.I crontab
entries is nonstandard.
Strings following
.L %
should be delivered to the command as standard input.