1 .\" $FreeBSD: src/usr.bin/at/at.man,v 1.13.2.10 2003/05/03 21:55:26 keramida Exp $
2 .\" $DragonFly: src/usr.bin/at/at.man,v 1.5 2006/11/11 18:50:04 swildner Exp $
11 .Nd queue, examine or delete jobs for later execution
21 .Fl c Ar job Op Ar job ...
43 read commands from standard input or a specified file which are to
44 be executed at a later time, using
46 .Bl -tag -width indent
48 executes commands at a specified time;
50 lists the user's pending jobs, unless the user is the superuser; in that
51 case, everybody's jobs are listed;
55 executes commands when system load levels permit; in other words, when the load average
56 drops below _LOADAVG_MX, or the value specified in the invocation of
61 allows some moderately complex
64 It accepts times of the form
68 to run a job at a specific time of day.
69 (If that time is already past, the next day is assumed.)
70 As an alternative, the following keywords may be specified:
76 and time-of-day may be suffixed with
80 for running in the morning or the evening.
81 The day on which the job is to be run may also be specified
82 by giving a date in the form
86 or giving a date of the forms
93 The specification of a date must follow the specification of
95 Time can also be specified as:
97 .Em + Ar count \%time-units ,
98 where the time-units can be
108 to run the job today by suffixing the time with
110 and to run the job tomorrow by suffixing the time with
113 For example, to run a job at 4pm three days from now, you would do
114 .Nm at Ar 4pm + 3 days ,
115 to run a job at 10:00am on July 31, you would do
116 .Nm at Ar 10am Jul 31
117 and to run a job at 1am tomorrow, you would do
118 .Nm at Ar 1am tomorrow .
124 commands are read from standard input or the file specified
128 The working directory, the environment (except for the variables
136 are retained from the time of invocation.
141 command invoked from a
143 shell will retain the current userid.
144 The user will be mailed standard error and standard output from his
146 Mail will be sent using the command
152 shell, the owner of the login shell will receive the mail.
154 The superuser may use these commands in any case.
155 For other users, permission to use
157 is determined by the files
158 .Pa _PERM_PATH/at.allow
160 .Pa _PERM_PATH/at.deny .
163 .Pa _PERM_PATH/at.allow
164 exists, only usernames mentioned in it are allowed to use
166 In these two files, a user is considered to be listed only if the user
167 name has no blank or other characters before it on its line and a
168 newline character immediately after the name, even at the end of
170 Other lines are ignored and may be used for comments.
173 .Pa _PERM_PATH/at.allow
175 .Pa _PERM_PATH/at.deny
176 is checked, every username not mentioned in it is then allowed
180 If neither exists, only the superuser is allowed use of
182 This is the default configuration.
184 .Bl -tag -width indent
186 Print the version number to standard error.
188 Use the specified queue.
189 A queue designation consists of a single letter; valid queue designations
199 .Ar _DEFAULT_AT_QUEUE
200 queue is the default for
203 .Ar _DEFAULT_BATCH_QUEUE
206 Queues with higher letters run with increased niceness.
207 If a job is submitted to a queue designated with an uppercase letter, it
208 is treated as if it had been submitted to batch at that time.
211 is given a specific queue, it will only show jobs pending in that queue.
213 Send mail to the user when the job has completed even if there was no
218 rather than standard input.
231 shows completed but not yet deleted jobs in the queue; otherwise
232 shows the time the job will be executed.
234 Cat the jobs listed on the command line to standard output.
237 .Bl -tag -width _ATJOB_DIR/_LOCKFILE -compact
239 directory containing job files
241 directory containing output spool files
244 .It Pa _PERM_PATH/at.allow
245 allow permission control
246 .It Pa _PERM_PATH/at.deny
247 deny permission control
248 .It Pa _ATJOB_DIR/_LOCKFILE
249 job-creation lock file
263 utilities do not conform to
267 At was mostly written by
268 .An Thomas Koenig Aq ig25@rz.uni-karlsruhe.de .
269 The time parsing routines are by
270 .An David Parsons Aq orc@pell.chi.il.us .
274 is not available or corrupted, or if the user is not logged on at the
277 is invoked, the mail is sent to the userid found
278 in the environment variable
280 If that is undefined or empty, the current userid is assumed.
285 as presently implemented are not suitable when users are competing for
287 If this is the case for your site, you might want to consider another
288 batch system, such as