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 27401e6468SPhilippe Charnier.Nm crontab 28401e6468SPhilippe Charnier.Op Fl u Ar user 29401e6468SPhilippe Charnier.Ar file 30401e6468SPhilippe Charnier.Nm crontab 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 38401e6468SPhilippe Charnier.Nm Crontab 3984f33deaSJordan K. Hubbardis the program used to install, deinstall or list the tables 4084f33deaSJordan K. Hubbardused to drive the 41401e6468SPhilippe Charnier.Xr cron 8 4284f33deaSJordan K. Hubbarddaemon in Vixie Cron. Each user can have their own crontab, and though 43401e6468SPhilippe Charnierthese are files in 44401e6468SPhilippe Charnier.Pa /var , 45401e6468SPhilippe Charnierthey are not intended to be edited directly. 46401e6468SPhilippe Charnier.Pp 4784f33deaSJordan K. HubbardIf the 48401e6468SPhilippe Charnier.Pa allow 4984f33deaSJordan K. Hubbardfile exists, then you must be listed therein in order to be allowed to use 5084f33deaSJordan K. Hubbardthis command. If the 51401e6468SPhilippe Charnier.Pa allow 5284f33deaSJordan K. Hubbardfile does not exist but the 53401e6468SPhilippe Charnier.Pa deny 54401e6468SPhilippe Charnierfile does exist, then you must 55401e6468SPhilippe Charnier.Em not 56401e6468SPhilippe Charnierbe listed in the 57401e6468SPhilippe Charnier.Pa deny 5884f33deaSJordan K. Hubbardfile in order to use this command. If neither of these files exists, then 5984f33deaSJordan K. Hubbarddepending on site-dependent configuration parameters, only the super user 6084f33deaSJordan K. Hubbardwill be allowed to use this command, or all users will be able to use this 6184f33deaSJordan K. Hubbardcommand. 62401e6468SPhilippe Charnier.Pp 6384f33deaSJordan K. HubbardThe first form of this command is used to install a new crontab from some 6484f33deaSJordan K. Hubbardnamed file or standard input if the pseudo-filename ``-'' is given. 65401e6468SPhilippe Charnier.Pp 66401e6468SPhilippe CharnierThe following options are available: 67401e6468SPhilippe Charnier.Bl -tag -width indent 68401e6468SPhilippe Charnier.It Fl u 69401e6468SPhilippe CharnierSpecify the name of the user whose crontab is to be 70401e6468SPhilippe Charniertweaked. If this option is not given, 71401e6468SPhilippe Charnier.Nm 72401e6468SPhilippe Charnierexamines "your" crontab, i.e., the crontab of the person executing the 73401e6468SPhilippe Charniercommand. Note that 74866d7f28SChris Costello.Xr su 1 75401e6468SPhilippe Charniercan confuse 76401e6468SPhilippe Charnier.Nm 77401e6468SPhilippe Charnierand that if you are running inside of 78866d7f28SChris Costello.Xr su 1 79401e6468SPhilippe Charnieryou should always use the 80401e6468SPhilippe Charnier.Fl u 81401e6468SPhilippe Charnieroption for safety's sake. 82401e6468SPhilippe Charnier.It Fl l 83401e6468SPhilippe CharnierDisplay the current crontab on standard output. 84401e6468SPhilippe Charnier.It Fl r 85401e6468SPhilippe CharnierRemove the current crontab. 86401e6468SPhilippe Charnier.It Fl e 87401e6468SPhilippe CharnierEdit the current crontab using the editor specified by 88401e6468SPhilippe Charnierthe 89401e6468SPhilippe Charnier.Ev VISUAL 90401e6468SPhilippe Charnieror 91401e6468SPhilippe Charnier.Ev EDITOR 9225e9ca2bSDavid Maloneenvironment variables. 9325e9ca2bSDavid MaloneThe specified editor 9425e9ca2bSDavid Malone.Em must 9525e9ca2bSDavid Maloneedit the file in place; 9625e9ca2bSDavid Maloneany editor that unlinks the file and recreates it cannot be used. 9725e9ca2bSDavid MaloneAfter you exit 9884f33deaSJordan K. Hubbardfrom the editor, the modified crontab will be installed automatically. 99401e6468SPhilippe Charnier.El 100401e6468SPhilippe Charnier.Sh SEE ALSO 101401e6468SPhilippe Charnier.Xr crontab 5 , 102401e6468SPhilippe Charnier.Xr cron 8 103401e6468SPhilippe Charnier.Sh FILES 104401e6468SPhilippe Charnier.Bl -tag -width /var/cron/allow -compact 105401e6468SPhilippe Charnier.It Pa /var/cron/allow 106401e6468SPhilippe Charnier.It Pa /var/cron/deny 107401e6468SPhilippe Charnier.El 108401e6468SPhilippe Charnier.Sh STANDARDS 10984f33deaSJordan K. HubbardThe 110401e6468SPhilippe Charnier.Nm 111401e6468SPhilippe Charniercommand conforms to 112401e6468SPhilippe Charnier.St -p1003.2 . 113401e6468SPhilippe CharnierThis new command syntax 11484f33deaSJordan K. Hubbarddiffers from previous versions of Vixie Cron, as well as from the classic 11584f33deaSJordan K. HubbardSVR3 syntax. 116401e6468SPhilippe Charnier.Sh DIAGNOSTICS 11784f33deaSJordan K. HubbardA fairly informative usage message appears if you run it with a bad command 11884f33deaSJordan K. Hubbardline. 119f12a1471SPhilippe Charnier.Sh AUTHORS 120401e6468SPhilippe Charnier.An Paul Vixie Aq paul@vix.com 121