BSD 4_1c_2 development
[unix-history] / usr / man / man8 / cron.8
CommitLineData
ce1056cb
C
1.TH CRON 8 "4 February 1983"
2.SH NAME
3cron \- clock daemon
4.SH SYNOPSIS
5.B /etc/cron
6.SH DESCRIPTION
7.I Cron
8executes commands at specified dates and times
9according to the instructions in the file
10/usr/lib/crontab.
11Since
12.I cron
13never exits,
14it should only be executed once.
15This is best done by running
16.I cron
17from the initialization
18process through the file
19/etc/rc;
20see
21.IR init (8).
22.PP
23Crontab
24consists of lines of six fields each.
25The fields are separated by spaces or tabs.
26The first five are integer patterns to
27specify the
28minute (0-59),
29hour (0-23),
30day of the month (1-31),
31month of the year (1-12),
32and day of the week (1-7 with 1=Monday).
33Each of these patterns may
34contain a number in the range above;
35two numbers separated by
36a minus
37meaning a range inclusive;
38a list of numbers separated by
39commas meaning any of the numbers;
40or an asterisk meaning all legal values.
41The sixth field is a string
42that is executed by the Shell at the
43specified times.
44A percent character
45in this field is translated to a new-line
46character.
47Only the first line (up to a % or end of line)
48of the command field is executed by the Shell.
49The other lines are made available to the
50command as standard input.
51.PP
52Crontab is examined by
53.I cron
54every minute.
55.SH FILES
56/usr/lib/crontab