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