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 43aaa66740STom Rhodesdaemon in Vixie Cron. 44aaa66740STom RhodesEach user can have their own crontab, and though 45401e6468SPhilippe Charnierthese are files in 46401e6468SPhilippe Charnier.Pa /var , 47401e6468SPhilippe Charnierthey are not intended to be edited directly. 48401e6468SPhilippe Charnier.Pp 4984f33deaSJordan K. HubbardIf the 50401e6468SPhilippe Charnier.Pa allow 5184f33deaSJordan K. Hubbardfile exists, then you must be listed therein in order to be allowed to use 52aaa66740STom Rhodesthis command. 53aaa66740STom RhodesIf the 54401e6468SPhilippe Charnier.Pa allow 5584f33deaSJordan K. Hubbardfile does not exist but the 56401e6468SPhilippe Charnier.Pa deny 57401e6468SPhilippe Charnierfile does exist, then you must 58401e6468SPhilippe Charnier.Em not 59401e6468SPhilippe Charnierbe listed in the 60401e6468SPhilippe Charnier.Pa deny 61aaa66740STom Rhodesfile in order to use this command. 62aaa66740STom RhodesIf neither of these files exists, then 6384f33deaSJordan K. Hubbarddepending on site-dependent configuration parameters, only the super user 6484f33deaSJordan K. Hubbardwill be allowed to use this command, or all users will be able to use this 6584f33deaSJordan K. Hubbardcommand. 66377a2e03SDavid MaloneThe format of these files is one username per line, 67377a2e03SDavid Malonewith no leading or trailing whitespace. 68377a2e03SDavid MaloneLines of other formats will be ignored, 69377a2e03SDavid Maloneand so can be used for comments. 70401e6468SPhilippe Charnier.Pp 7184f33deaSJordan K. HubbardThe first form of this command is used to install a new crontab from some 72aaa66740STom Rhodesnamed file or standard input if the pseudo-filename 73aaa66740STom Rhodes.Dq - 74aaa66740STom Rhodesis given. 75401e6468SPhilippe Charnier.Pp 76401e6468SPhilippe CharnierThe following options are available: 77401e6468SPhilippe Charnier.Bl -tag -width indent 78401e6468SPhilippe Charnier.It Fl u 79401e6468SPhilippe CharnierSpecify the name of the user whose crontab is to be 80aaa66740STom Rhodestweaked. 81aaa66740STom RhodesIf this option is not given, 82401e6468SPhilippe Charnier.Nm 83aaa66740STom Rhodesexamines 84aaa66740STom Rhodes.Dq your 85aaa66740STom Rhodescrontab, i.e., the crontab of the person executing the 86aaa66740STom Rhodescommand. 87aaa66740STom RhodesNote that 88866d7f28SChris Costello.Xr su 1 89401e6468SPhilippe Charniercan confuse 90401e6468SPhilippe Charnier.Nm 91401e6468SPhilippe Charnierand that if you are running inside of 92866d7f28SChris Costello.Xr su 1 93401e6468SPhilippe Charnieryou should always use the 94401e6468SPhilippe Charnier.Fl u 95401e6468SPhilippe Charnieroption for safety's sake. 96401e6468SPhilippe Charnier.It Fl l 97401e6468SPhilippe CharnierDisplay the current crontab on standard output. 98401e6468SPhilippe Charnier.It Fl r 99401e6468SPhilippe CharnierRemove the current crontab. 100401e6468SPhilippe Charnier.It Fl e 101401e6468SPhilippe CharnierEdit the current crontab using the editor specified by 102401e6468SPhilippe Charnierthe 103401e6468SPhilippe Charnier.Ev VISUAL 104401e6468SPhilippe Charnieror 105401e6468SPhilippe Charnier.Ev EDITOR 10625e9ca2bSDavid Maloneenvironment variables. 10725e9ca2bSDavid MaloneThe specified editor 10825e9ca2bSDavid Malone.Em must 10925e9ca2bSDavid Maloneedit the file in place; 11025e9ca2bSDavid Maloneany editor that unlinks the file and recreates it cannot be used. 11125e9ca2bSDavid MaloneAfter you exit 11284f33deaSJordan K. Hubbardfrom the editor, the modified crontab will be installed automatically. 113401e6468SPhilippe Charnier.El 114401e6468SPhilippe Charnier.Sh SEE ALSO 115401e6468SPhilippe Charnier.Xr crontab 5 , 116401e6468SPhilippe Charnier.Xr cron 8 117401e6468SPhilippe Charnier.Sh FILES 118401e6468SPhilippe Charnier.Bl -tag -width /var/cron/allow -compact 119401e6468SPhilippe Charnier.It Pa /var/cron/allow 120401e6468SPhilippe Charnier.It Pa /var/cron/deny 121401e6468SPhilippe Charnier.El 122401e6468SPhilippe Charnier.Sh STANDARDS 12384f33deaSJordan K. HubbardThe 124401e6468SPhilippe Charnier.Nm 125401e6468SPhilippe Charniercommand conforms to 126b9ff618cSHartmut Brandt.St -p1003.2 127b9ff618cSHartmut Brandtwith the exception that the dangerous variant of calling 128b9ff618cSHartmut Brandt.Nm 129b9ff618cSHartmut Brandtwithout a file name in the first form of the command is not allowed by 130b9ff618cSHartmut Brandtthis implementation. 131aaa66740STom RhodesThe pseudo-filename 132aaa66740STom Rhodes.Dq - 133aaa66740STom Rhodesmust be specified to read from standard input. 134b9ff618cSHartmut BrandtThe new command syntax 13584f33deaSJordan K. Hubbarddiffers from previous versions of Vixie Cron, as well as from the classic 13684f33deaSJordan K. HubbardSVR3 syntax. 137401e6468SPhilippe Charnier.Sh DIAGNOSTICS 13884f33deaSJordan K. HubbardA fairly informative usage message appears if you run it with a bad command 13984f33deaSJordan K. Hubbardline. 140f12a1471SPhilippe Charnier.Sh AUTHORS 141401e6468SPhilippe Charnier.An Paul Vixie Aq paul@vix.com 142