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 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. 62377a2e03SDavid MaloneThe format of these files is one username per line, 63377a2e03SDavid Malonewith no leading or trailing whitespace. 64377a2e03SDavid MaloneLines of other formats will be ignored, 65377a2e03SDavid Maloneand so can be used for comments. 66401e6468SPhilippe Charnier.Pp 6784f33deaSJordan K. HubbardThe first form of this command is used to install a new crontab from some 6884f33deaSJordan K. Hubbardnamed file or standard input if the pseudo-filename ``-'' is given. 69401e6468SPhilippe Charnier.Pp 70401e6468SPhilippe CharnierThe following options are available: 71401e6468SPhilippe Charnier.Bl -tag -width indent 72401e6468SPhilippe Charnier.It Fl u 73401e6468SPhilippe CharnierSpecify the name of the user whose crontab is to be 74401e6468SPhilippe Charniertweaked. If this option is not given, 75401e6468SPhilippe Charnier.Nm 76401e6468SPhilippe Charnierexamines "your" crontab, i.e., the crontab of the person executing the 77401e6468SPhilippe Charniercommand. Note that 78866d7f28SChris Costello.Xr su 1 79401e6468SPhilippe Charniercan confuse 80401e6468SPhilippe Charnier.Nm 81401e6468SPhilippe Charnierand that if you are running inside of 82866d7f28SChris Costello.Xr su 1 83401e6468SPhilippe Charnieryou should always use the 84401e6468SPhilippe Charnier.Fl u 85401e6468SPhilippe Charnieroption for safety's sake. 86401e6468SPhilippe Charnier.It Fl l 87401e6468SPhilippe CharnierDisplay the current crontab on standard output. 88401e6468SPhilippe Charnier.It Fl r 89401e6468SPhilippe CharnierRemove the current crontab. 90401e6468SPhilippe Charnier.It Fl e 91401e6468SPhilippe CharnierEdit the current crontab using the editor specified by 92401e6468SPhilippe Charnierthe 93401e6468SPhilippe Charnier.Ev VISUAL 94401e6468SPhilippe Charnieror 95401e6468SPhilippe Charnier.Ev EDITOR 9625e9ca2bSDavid Maloneenvironment variables. 9725e9ca2bSDavid MaloneThe specified editor 9825e9ca2bSDavid Malone.Em must 9925e9ca2bSDavid Maloneedit the file in place; 10025e9ca2bSDavid Maloneany editor that unlinks the file and recreates it cannot be used. 10125e9ca2bSDavid MaloneAfter you exit 10284f33deaSJordan K. Hubbardfrom the editor, the modified crontab will be installed automatically. 103401e6468SPhilippe Charnier.El 104401e6468SPhilippe Charnier.Sh SEE ALSO 105401e6468SPhilippe Charnier.Xr crontab 5 , 106401e6468SPhilippe Charnier.Xr cron 8 107401e6468SPhilippe Charnier.Sh FILES 108401e6468SPhilippe Charnier.Bl -tag -width /var/cron/allow -compact 109401e6468SPhilippe Charnier.It Pa /var/cron/allow 110401e6468SPhilippe Charnier.It Pa /var/cron/deny 111401e6468SPhilippe Charnier.El 112401e6468SPhilippe Charnier.Sh STANDARDS 11384f33deaSJordan K. HubbardThe 114401e6468SPhilippe Charnier.Nm 115401e6468SPhilippe Charniercommand conforms to 116401e6468SPhilippe Charnier.St -p1003.2 . 117401e6468SPhilippe CharnierThis new command syntax 11884f33deaSJordan K. Hubbarddiffers from previous versions of Vixie Cron, as well as from the classic 11984f33deaSJordan K. HubbardSVR3 syntax. 120401e6468SPhilippe Charnier.Sh DIAGNOSTICS 12184f33deaSJordan K. HubbardA fairly informative usage message appears if you run it with a bad command 12284f33deaSJordan K. Hubbardline. 123f12a1471SPhilippe Charnier.Sh AUTHORS 124401e6468SPhilippe Charnier.An Paul Vixie Aq paul@vix.com 125