xref: /freebsd/usr.sbin/cron/crontab/crontab.1 (revision 7f94b8deee60475f7d25f04484f36e824d2ce21d)
184f33deaSJordan K. Hubbard.\"/* Copyright 1988,1990,1993 by Paul Vixie
284f33deaSJordan K. Hubbard.\" * All rights reserved
384f33deaSJordan K. Hubbard.\" *
484f33deaSJordan K. Hubbard.\" * Distribute freely, except: don't remove my name from the source or
584f33deaSJordan K. Hubbard.\" * documentation (don't take credit for my work), mark your changes (don't
684f33deaSJordan K. Hubbard.\" * get me blamed for your possible bugs), don't alter or remove this
784f33deaSJordan K. Hubbard.\" * notice.  May be sold if buildable source is provided to buyer.  No
884f33deaSJordan K. Hubbard.\" * warrantee of any kind, express or implied, is included with this
984f33deaSJordan K. Hubbard.\" * software; use at your own risk, responsibility for damages (if any) to
1084f33deaSJordan K. Hubbard.\" * anyone resulting from the use of this software rests entirely with the
1184f33deaSJordan K. Hubbard.\" * user.
1284f33deaSJordan K. Hubbard.\" *
1384f33deaSJordan K. Hubbard.\" * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
1484f33deaSJordan K. Hubbard.\" * I'll try to keep a version up to date.  I can be reached as follows:
1584f33deaSJordan K. Hubbard.\" * Paul Vixie          <paul@vix.com>          uunet!decwrl!vixie!paul
1684f33deaSJordan K. Hubbard.\" */
1784f33deaSJordan K. Hubbard.\"
1897d92980SPeter Wemm.\" $FreeBSD$
1984f33deaSJordan K. Hubbard.\"
20401e6468SPhilippe Charnier.Dd December 29, 1993
21401e6468SPhilippe Charnier.Dt CRONTAB 1
22401e6468SPhilippe Charnier.Os
23401e6468SPhilippe Charnier.Sh NAME
24401e6468SPhilippe Charnier.Nm crontab
25401e6468SPhilippe Charnier.Nd maintain crontab files for individual users (V3)
26401e6468SPhilippe Charnier.Sh SYNOPSIS
27e97407b4SRuslan Ermilov.Nm
28401e6468SPhilippe Charnier.Op Fl u Ar user
29401e6468SPhilippe Charnier.Ar file
30e97407b4SRuslan Ermilov.Nm
31401e6468SPhilippe Charnier.Op Fl u Ar user
32401e6468SPhilippe Charnier{
33401e6468SPhilippe Charnier.Fl l |
34401e6468SPhilippe Charnier.Fl r |
35401e6468SPhilippe Charnier.Fl e
36401e6468SPhilippe Charnier}
37401e6468SPhilippe Charnier.Sh DESCRIPTION
387f94b8deSPhilippe CharnierThe
397f94b8deSPhilippe Charnier.Nm
407f94b8deSPhilippe Charnierutility is the program used to install, deinstall or list the tables
4184f33deaSJordan K. Hubbardused to drive the
42401e6468SPhilippe Charnier.Xr cron 8
4384f33deaSJordan K. Hubbarddaemon in Vixie Cron.  Each user can have their own crontab, and though
44401e6468SPhilippe Charnierthese are files in
45401e6468SPhilippe Charnier.Pa /var ,
46401e6468SPhilippe Charnierthey are not intended to be edited directly.
47401e6468SPhilippe Charnier.Pp
4884f33deaSJordan K. HubbardIf the
49401e6468SPhilippe Charnier.Pa allow
5084f33deaSJordan K. Hubbardfile exists, then you must be listed therein in order to be allowed to use
5184f33deaSJordan K. Hubbardthis command.  If the
52401e6468SPhilippe Charnier.Pa allow
5384f33deaSJordan K. Hubbardfile does not exist but the
54401e6468SPhilippe Charnier.Pa deny
55401e6468SPhilippe Charnierfile does exist, then you must
56401e6468SPhilippe Charnier.Em not
57401e6468SPhilippe Charnierbe listed in the
58401e6468SPhilippe Charnier.Pa deny
5984f33deaSJordan K. Hubbardfile in order to use this command.  If neither of these files exists, then
6084f33deaSJordan K. Hubbarddepending on site-dependent configuration parameters, only the super user
6184f33deaSJordan K. Hubbardwill be allowed to use this command, or all users will be able to use this
6284f33deaSJordan K. Hubbardcommand.
63377a2e03SDavid MaloneThe format of these files is one username per line,
64377a2e03SDavid Malonewith no leading or trailing whitespace.
65377a2e03SDavid MaloneLines of other formats will be ignored,
66377a2e03SDavid Maloneand so can be used for comments.
67401e6468SPhilippe Charnier.Pp
6884f33deaSJordan K. HubbardThe first form of this command is used to install a new crontab from some
6984f33deaSJordan K. Hubbardnamed file or standard input if the pseudo-filename ``-'' is given.
70401e6468SPhilippe Charnier.Pp
71401e6468SPhilippe CharnierThe following options are available:
72401e6468SPhilippe Charnier.Bl -tag -width indent
73401e6468SPhilippe Charnier.It Fl u
74401e6468SPhilippe CharnierSpecify the name of the user whose crontab is to be
75401e6468SPhilippe Charniertweaked.  If this option is not given,
76401e6468SPhilippe Charnier.Nm
77401e6468SPhilippe Charnierexamines "your" crontab, i.e., the crontab of the person executing the
78401e6468SPhilippe Charniercommand.  Note that
79866d7f28SChris Costello.Xr su 1
80401e6468SPhilippe Charniercan confuse
81401e6468SPhilippe Charnier.Nm
82401e6468SPhilippe Charnierand that if you are running inside of
83866d7f28SChris Costello.Xr su 1
84401e6468SPhilippe Charnieryou should always use the
85401e6468SPhilippe Charnier.Fl u
86401e6468SPhilippe Charnieroption for safety's sake.
87401e6468SPhilippe Charnier.It Fl l
88401e6468SPhilippe CharnierDisplay the current crontab on standard output.
89401e6468SPhilippe Charnier.It Fl r
90401e6468SPhilippe CharnierRemove the current crontab.
91401e6468SPhilippe Charnier.It Fl e
92401e6468SPhilippe CharnierEdit the current crontab using the editor specified by
93401e6468SPhilippe Charnierthe
94401e6468SPhilippe Charnier.Ev VISUAL
95401e6468SPhilippe Charnieror
96401e6468SPhilippe Charnier.Ev EDITOR
9725e9ca2bSDavid Maloneenvironment variables.
9825e9ca2bSDavid MaloneThe specified editor
9925e9ca2bSDavid Malone.Em must
10025e9ca2bSDavid Maloneedit the file in place;
10125e9ca2bSDavid Maloneany editor that unlinks the file and recreates it cannot be used.
10225e9ca2bSDavid MaloneAfter you exit
10384f33deaSJordan K. Hubbardfrom the editor, the modified crontab will be installed automatically.
104401e6468SPhilippe Charnier.El
105401e6468SPhilippe Charnier.Sh SEE ALSO
106401e6468SPhilippe Charnier.Xr crontab 5 ,
107401e6468SPhilippe Charnier.Xr cron 8
108401e6468SPhilippe Charnier.Sh FILES
109401e6468SPhilippe Charnier.Bl -tag -width /var/cron/allow -compact
110401e6468SPhilippe Charnier.It Pa /var/cron/allow
111401e6468SPhilippe Charnier.It Pa /var/cron/deny
112401e6468SPhilippe Charnier.El
113401e6468SPhilippe Charnier.Sh STANDARDS
11484f33deaSJordan K. HubbardThe
115401e6468SPhilippe Charnier.Nm
116401e6468SPhilippe Charniercommand conforms to
117401e6468SPhilippe Charnier.St -p1003.2 .
118401e6468SPhilippe CharnierThis new command syntax
11984f33deaSJordan K. Hubbarddiffers from previous versions of Vixie Cron, as well as from the classic
12084f33deaSJordan K. HubbardSVR3 syntax.
121401e6468SPhilippe Charnier.Sh DIAGNOSTICS
12284f33deaSJordan K. HubbardA fairly informative usage message appears if you run it with a bad command
12384f33deaSJordan K. Hubbardline.
124f12a1471SPhilippe Charnier.Sh AUTHORS
125401e6468SPhilippe Charnier.An Paul Vixie Aq paul@vix.com
126