1.\"/* Copyright 1988,1990,1993 by Paul Vixie 2.\" * All rights reserved 3.\" * 4.\" * Distribute freely, except: don't remove my name from the source or 5.\" * documentation (don't take credit for my work), mark your changes (don't 6.\" * get me blamed for your possible bugs), don't alter or remove this 7.\" * notice. May be sold if buildable source is provided to buyer. No 8.\" * warrantee of any kind, express or implied, is included with this 9.\" * software; use at your own risk, responsibility for damages (if any) to 10.\" * anyone resulting from the use of this software rests entirely with the 11.\" * user. 12.\" * 13.\" * Send bug reports, bug fixes, enhancements, requests, flames, etc., and 14.\" * I'll try to keep a version up to date. I can be reached as follows: 15.\" * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul 16.\" */ 17.\" 18.Dd December 20, 2016 19.Dt CRONTAB 1 20.Os 21.Sh NAME 22.Nm crontab 23.Nd maintain crontab files for individual users (V3) 24.Sh SYNOPSIS 25.Nm 26.Op Fl u Ar user 27.Ar file 28.Nm 29.Op Fl u Ar user 30{ 31.Fl l | 32.Fl r Op Fl f 33| 34.Fl e 35} 36.Sh DESCRIPTION 37The 38.Nm 39utility is the program used to install, deinstall or list the tables 40used to drive the 41.Xr cron 8 42daemon in Vixie Cron. 43Each user can have their own crontab, and though 44these are files in 45.Pa /var , 46they are not intended to be edited directly. 47.Pp 48If the 49.Pa allow 50file exists, then you must be listed therein in order to be allowed to use 51this command. 52If the 53.Pa allow 54file does not exist but the 55.Pa deny 56file does exist, then you must 57.Em not 58be listed in the 59.Pa deny 60file in order to use this command. 61If neither of these files exists, then 62depending on site-dependent configuration parameters, only the super user 63will be allowed to use this command, or all users will be able to use this 64command. 65The format of these files is one username per line, 66with no leading or trailing whitespace. 67Lines of other formats will be ignored, 68and so can be used for comments. 69.Pp 70The first form of this command is used to install a new crontab from some 71named file or standard input if the pseudo-filename 72.Sq Fl 73is given. 74.Pp 75The following options are available: 76.Bl -tag -width indent 77.It Fl u 78Specify the name of the user whose crontab is to be 79tweaked. 80If this option is not given, 81.Nm 82examines 83.Dq your 84crontab, i.e., the crontab of the person executing the 85command. 86Note that 87.Xr su 1 88can confuse 89.Nm 90and that if you are running inside of 91.Xr su 1 92you should always use the 93.Fl u 94option for safety's sake. 95.It Fl l 96Display the current crontab on standard output. 97.It Fl r 98Remove the current crontab. 99By default the 100.Fl r 101option prompts for confirmation, adding the 102.Fl f 103option will attempt to remove the current crontab without confirmation. 104.It Fl e 105Edit the current crontab using the editor specified by 106the 107.Ev VISUAL 108or 109.Ev EDITOR 110environment variables. 111The specified editor 112.Em must 113edit the file in place; 114any editor that unlinks the file and recreates it cannot be used. 115After you exit 116from the editor, the modified crontab will be installed automatically. 117.El 118.Sh FILES 119.Bl -tag -width /var/cron/allow -compact 120.It Pa /var/cron/allow 121List of users allowed to use crontab 122.It Pa /var/cron/deny 123List of users prohibited from using crontab 124.It Pa /var/cron/tabs 125Directory for personal crontab files 126.El 127.Sh DIAGNOSTICS 128A fairly informative usage message appears if you run it with a bad command 129line. 130.Sh SEE ALSO 131.Xr crontab 5 , 132.Xr cron 8 133.Sh STANDARDS 134The 135.Nm 136command conforms to 137.St -p1003.2 138with the exception that the dangerous variant of calling 139.Nm 140without a file name in the first form of the command is not allowed by 141this implementation. 142The pseudo-filename 143.Sq Fl 144must be specified to read from standard input. 145The new command syntax 146differs from previous versions of Vixie Cron, as well as from the classic 147SVR3 syntax. 148.Sh AUTHORS 149.An Paul Vixie Aq Mt paul@vix.com 150