/[pkg-cron]/trunk/crontab.1
ViewVC logotype

Contents of /trunk/crontab.1

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22 - (show annotations) (download)
Sun Apr 11 19:59:09 1999 UTC (14 years, 1 month ago) by steveg
File size: 4501 byte(s)
Added all debian changes
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 .\" $Id: crontab.1,v 2.4 1993/12/31 10:47:33 vixie Exp $
19 .\"
20 .TH CRONTAB 1 "29 December 1993"
21 .UC 4
22 .SH NAME
23 crontab \- maintain crontab files for individual users (V3)
24 .SH SYNOPSIS
25 crontab [ -u user ] file
26 .br
27 crontab [ -u user ] { -l | -r | -e }
28 .SH DESCRIPTION
29 .I crontab
30 is the program used to install, deinstall or list the tables
31 used to drive the
32 .IR cron (8)
33 daemon in Vixie Cron. Each user can have their own crontab, and though
34 these are files in /var/spool/cron/crontabs,
35 they are not intended to be edited directly.
36 .PP
37 If the
38 .I /etc/cron.allow
39 file exists, then you must be listed therein in order to be allowed to use
40 this command. If the
41 .I /etc/cron.allow
42 file does not exist but the
43 .I /etc/cron.deny
44 file does exist, then you must \fBnot\fR be listed in the
45 .I /etc/cron.deny
46 file in order to use this command. If neither of these files exists, then
47 depending on site-dependent configuration parameters, only the super user
48 will be allowed to use this command, or all users will be able to use this
49 command. For standard Debian systems, all users may use this command.
50 .PP
51 If the
52 .I -u
53 option is given, it specifies the name of the user whose crontab is to be
54 tweaked. If this option is not given,
55 .I crontab
56 examines "your" crontab, i.e., the crontab of the person executing the
57 command. Note that
58 .IR su (8)
59 can confuse
60 .I crontab
61 and that if you are running inside of
62 .IR su (8)
63 you should always use the
64 .I -u
65 option for safety's sake.
66 .PP
67 The first form of this command is used to install a new crontab from some
68 named file or standard input if the pseudo-filename ``-'' is given.
69 .PP
70 The
71 .I -l
72 option causes the current crontab to be displayed on standard output. See
73 the note under
74 .B DEBIAN SPECIFIC
75 below.
76 .PP
77 The
78 .I -r
79 option causes the current crontab to be removed.
80 .PP
81 The
82 .I -e
83 option is used to edit the current crontab using the editor specified by
84 the \s-1VISUAL\s+1 or \s-1EDITOR\s+1 environment variables. After you exit
85 from the editor, the modified crontab will be installed automatically.
86 .SH DEBIAN SPECIFIC
87 The "out-of-the-box" behaviour for
88 .I crontab -l
89 is to display the three line "DO NOT EDIT THIS FILE" header
90 that is placed at the
91 beginning of the crontab when it is installed. The problem is that
92 it makes the sequence
93 .PP
94 crontab -l | crontab -
95 .PP
96 non-idempotent -- you keep adding copies of the header. This causes
97 pain to scripts that use sed to edit a crontab. Therefore, setting
98 the environment variable
99 .B CRONTAB_NOHEADER
100 to 'Y' will cause the
101 .I crontab -l
102 command to prune the extraneous header. The reason it was not made the
103 default is that at present, some other Debian packages have scripts that
104 feed the output of
105 .I crontab -l
106 to a sed command that just chops the first three lines, assuming it will
107 be the unwanted header. This special behaviour
108 .B will
109 be made the default on a future release (probably for Debian 2.1).
110 .SH "SEE ALSO"
111 crontab(5), cron(8)
112 .SH FILES
113 .nf
114 /etc/cron.allow
115 /etc/cron.deny
116 .fi
117 .SH STANDARDS
118 The
119 .I crontab
120 command conforms to IEEE Std1003.2-1992 (``POSIX''). This new command syntax
121 differs from previous versions of Vixie Cron, as well as from the classic
122 SVR3 syntax.
123
124 .SH DIAGNOSTICS
125 A fairly informative usage message appears if you run it with a bad command
126 line.
127
128 .SH BUGS
129 Although cron requires that each entry in a crontab end in a newline
130 character, the neither the crontab command nor the cron daemon will
131 detect this error. Instead, the crontab will appear load
132 normally. However, the command will never run. The best choice is to
133 ensure that your crontab has a blank line and the end.
134
135 .SH AUTHOR
136 .nf
137 Paul Vixie <paul@vix.com>

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.5