184f33deaSJordan K. Hubbard.\"/* Copyright 1988,1990,1993 by Paul Vixie 284f33deaSJordan K. Hubbard.\" * All rights reserved 384f33deaSJordan K. Hubbard.\" */ 484f33deaSJordan K. Hubbard.\" 5*fe590ffeSEric van Gyzen.\"Copyright (c) 1997 by Internet Software Consortium 6*fe590ffeSEric van Gyzen.\" 7*fe590ffeSEric van Gyzen.\"Permission to use, copy, modify, and distribute this software for any 8*fe590ffeSEric van Gyzen.\"purpose with or without fee is hereby granted, provided that the above 9*fe590ffeSEric van Gyzen.\"copyright notice and this permission notice appear in all copies. 10*fe590ffeSEric van Gyzen.\" 11*fe590ffeSEric van Gyzen.\"THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS 12*fe590ffeSEric van Gyzen.\"ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 13*fe590ffeSEric van Gyzen.\"OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE 14*fe590ffeSEric van Gyzen.\"CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 15*fe590ffeSEric van Gyzen.\"DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 16*fe590ffeSEric van Gyzen.\"PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 17*fe590ffeSEric van Gyzen.\"ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 18*fe590ffeSEric van Gyzen.\"SOFTWARE. 19*fe590ffeSEric van Gyzen.\" 20*fe590ffeSEric van Gyzen.\" $Id: crontab.1,v 1.2 1998/08/14 00:32:37 vixie Exp $ 2184f33deaSJordan K. Hubbard.\" 22d21656dcSConrad Meyer.Dd December 20, 2016 23401e6468SPhilippe Charnier.Dt CRONTAB 1 24401e6468SPhilippe Charnier.Os 25401e6468SPhilippe Charnier.Sh NAME 26401e6468SPhilippe Charnier.Nm crontab 27401e6468SPhilippe Charnier.Nd maintain crontab files for individual users (V3) 28401e6468SPhilippe Charnier.Sh SYNOPSIS 29e97407b4SRuslan Ermilov.Nm 30401e6468SPhilippe Charnier.Op Fl u Ar user 31401e6468SPhilippe Charnier.Ar file 32e97407b4SRuslan Ermilov.Nm 33401e6468SPhilippe Charnier.Op Fl u Ar user 34401e6468SPhilippe Charnier{ 35401e6468SPhilippe Charnier.Fl l | 36d21656dcSConrad Meyer.Fl r Op Fl f 37d21656dcSConrad Meyer| 38401e6468SPhilippe Charnier.Fl e 39401e6468SPhilippe Charnier} 40401e6468SPhilippe Charnier.Sh DESCRIPTION 417f94b8deSPhilippe CharnierThe 427f94b8deSPhilippe Charnier.Nm 437f94b8deSPhilippe Charnierutility is the program used to install, deinstall or list the tables 4484f33deaSJordan K. Hubbardused to drive the 45401e6468SPhilippe Charnier.Xr cron 8 46aaa66740STom Rhodesdaemon in Vixie Cron. 47aaa66740STom RhodesEach user can have their own crontab, and though 48401e6468SPhilippe Charnierthese are files in 49401e6468SPhilippe Charnier.Pa /var , 50401e6468SPhilippe Charnierthey are not intended to be edited directly. 51401e6468SPhilippe Charnier.Pp 5284f33deaSJordan K. HubbardIf the 53401e6468SPhilippe Charnier.Pa allow 5484f33deaSJordan K. Hubbardfile exists, then you must be listed therein in order to be allowed to use 55aaa66740STom Rhodesthis command. 56aaa66740STom RhodesIf the 57401e6468SPhilippe Charnier.Pa allow 5884f33deaSJordan K. Hubbardfile does not exist but the 59401e6468SPhilippe Charnier.Pa deny 60401e6468SPhilippe Charnierfile does exist, then you must 61401e6468SPhilippe Charnier.Em not 62401e6468SPhilippe Charnierbe listed in the 63401e6468SPhilippe Charnier.Pa deny 64aaa66740STom Rhodesfile in order to use this command. 65aaa66740STom RhodesIf neither of these files exists, then 6684f33deaSJordan K. Hubbarddepending on site-dependent configuration parameters, only the super user 6784f33deaSJordan K. Hubbardwill be allowed to use this command, or all users will be able to use this 6884f33deaSJordan K. Hubbardcommand. 69377a2e03SDavid MaloneThe format of these files is one username per line, 70377a2e03SDavid Malonewith no leading or trailing whitespace. 71377a2e03SDavid MaloneLines of other formats will be ignored, 72377a2e03SDavid Maloneand so can be used for comments. 73401e6468SPhilippe Charnier.Pp 7484f33deaSJordan K. HubbardThe first form of this command is used to install a new crontab from some 75aaa66740STom Rhodesnamed file or standard input if the pseudo-filename 76b18b186eSRuslan Ermilov.Sq Fl 77aaa66740STom Rhodesis given. 78401e6468SPhilippe Charnier.Pp 79401e6468SPhilippe CharnierThe following options are available: 80401e6468SPhilippe Charnier.Bl -tag -width indent 81401e6468SPhilippe Charnier.It Fl u 82401e6468SPhilippe CharnierSpecify the name of the user whose crontab is to be 83aaa66740STom Rhodestweaked. 84aaa66740STom RhodesIf this option is not given, 85401e6468SPhilippe Charnier.Nm 86aaa66740STom Rhodesexamines 87aaa66740STom Rhodes.Dq your 88aaa66740STom Rhodescrontab, i.e., the crontab of the person executing the 89aaa66740STom Rhodescommand. 90aaa66740STom RhodesNote that 91866d7f28SChris Costello.Xr su 1 92401e6468SPhilippe Charniercan confuse 93401e6468SPhilippe Charnier.Nm 94401e6468SPhilippe Charnierand that if you are running inside of 95866d7f28SChris Costello.Xr su 1 96401e6468SPhilippe Charnieryou should always use the 97401e6468SPhilippe Charnier.Fl u 98401e6468SPhilippe Charnieroption for safety's sake. 99401e6468SPhilippe Charnier.It Fl l 100401e6468SPhilippe CharnierDisplay the current crontab on standard output. 101401e6468SPhilippe Charnier.It Fl r 102401e6468SPhilippe CharnierRemove the current crontab. 103d21656dcSConrad MeyerBy default the 104d21656dcSConrad Meyer.Fl r 105d21656dcSConrad Meyeroption prompts for confirmation, adding the 106d21656dcSConrad Meyer.Fl f 107d21656dcSConrad Meyeroption will attempt to remove the current crontab without confirmation. 108401e6468SPhilippe Charnier.It Fl e 109401e6468SPhilippe CharnierEdit the current crontab using the editor specified by 110401e6468SPhilippe Charnierthe 111401e6468SPhilippe Charnier.Ev VISUAL 112401e6468SPhilippe Charnieror 113401e6468SPhilippe Charnier.Ev EDITOR 11425e9ca2bSDavid Maloneenvironment variables. 11525e9ca2bSDavid MaloneThe specified editor 11625e9ca2bSDavid Malone.Em must 11725e9ca2bSDavid Maloneedit the file in place; 11825e9ca2bSDavid Maloneany editor that unlinks the file and recreates it cannot be used. 11925e9ca2bSDavid MaloneAfter you exit 12084f33deaSJordan K. Hubbardfrom the editor, the modified crontab will be installed automatically. 121401e6468SPhilippe Charnier.El 122401e6468SPhilippe Charnier.Sh FILES 123401e6468SPhilippe Charnier.Bl -tag -width /var/cron/allow -compact 124401e6468SPhilippe Charnier.It Pa /var/cron/allow 1250d83258dSChristian BruefferList of users allowed to use crontab 126401e6468SPhilippe Charnier.It Pa /var/cron/deny 1270d83258dSChristian BruefferList of users prohibited from using crontab 1280d83258dSChristian Brueffer.It Pa /var/cron/tabs 1290d83258dSChristian BruefferDirectory for personal crontab files 130401e6468SPhilippe Charnier.El 13159a3c79dSRuslan Ermilov.Sh DIAGNOSTICS 13259a3c79dSRuslan ErmilovA fairly informative usage message appears if you run it with a bad command 13359a3c79dSRuslan Ermilovline. 13459a3c79dSRuslan Ermilov.Sh SEE ALSO 13559a3c79dSRuslan Ermilov.Xr crontab 5 , 13659a3c79dSRuslan Ermilov.Xr cron 8 137401e6468SPhilippe Charnier.Sh STANDARDS 13884f33deaSJordan K. HubbardThe 139401e6468SPhilippe Charnier.Nm 140401e6468SPhilippe Charniercommand conforms to 141b9ff618cSHartmut Brandt.St -p1003.2 142b9ff618cSHartmut Brandtwith the exception that the dangerous variant of calling 143b9ff618cSHartmut Brandt.Nm 144b9ff618cSHartmut Brandtwithout a file name in the first form of the command is not allowed by 145b9ff618cSHartmut Brandtthis implementation. 146aaa66740STom RhodesThe pseudo-filename 147b18b186eSRuslan Ermilov.Sq Fl 148aaa66740STom Rhodesmust be specified to read from standard input. 149b9ff618cSHartmut BrandtThe new command syntax 15084f33deaSJordan K. Hubbarddiffers from previous versions of Vixie Cron, as well as from the classic 15184f33deaSJordan K. HubbardSVR3 syntax. 152f12a1471SPhilippe Charnier.Sh AUTHORS 15301c2b8acSBaptiste Daroussin.An Paul Vixie Aq Mt paul@vix.com 154