1 .\" $FreeBSD: src/usr.bin/at/at.man,v 1.34 2003/03/26 02:38:18 keramida Exp $
10 .Nd queue, examine, or delete jobs for later execution
24 .Ar MM DD hh mm Op . Ar SS
27 .Fl c Ar job Op Ar job ...
34 .Fl r Ar job Op Ar job ...
55 read commands from standard input or a specified file.
56 The commands are executed at a later time, using
58 .Bl -tag -width indent
60 executes commands at a specified time;
62 lists the user's pending jobs, unless the user is the superuser; in that
63 case, everybody's jobs are listed;
67 executes commands when system load levels permit; in other words, when the load average
68 drops below _LOADAVG_MX (1.5), or the value specified in the invocation of
74 utility allows some moderately complex
77 It accepts times of the form
81 to run a job at a specific time of day.
82 (If that time is already past, the next day is assumed.)
83 As an alternative, the following keywords may be specified:
89 and time-of-day may be suffixed with
93 for running in the morning or the evening.
94 The day on which the job is to be run may also be specified
95 by giving a date in the form
99 or giving a date of the forms
106 The specification of a date must follow the specification of
108 Time can also be specified as:
110 .Em + Ar count \%time-units ,
111 where the time-units can be
121 may be told to run the job today by suffixing the time with
123 and to run the job tomorrow by suffixing the time with
127 can be used instead of
130 For example, to run a job at 4pm three days from now, use
131 .Nm at Ar 4pm + 3 days ,
132 to run a job at 10:00am on July 31, use
133 .Nm at Ar 10am Jul 31
134 and to run a job at 1am tomorrow, use
135 .Nm at Ar 1am tomorrow .
139 utility also supports the
149 commands are read from standard input or the file specified
153 The working directory, the environment (except for the variables
161 are retained from the time of invocation.
166 command invoked from a
168 shell will retain the current userid.
169 The user will be mailed standard error and standard output from his
171 Mail will be sent using the command
177 shell, the owner of the login shell will receive the mail.
179 The superuser may use these commands in any case.
180 For other users, permission to use
182 is determined by the files
183 .Pa _PERM_PATH/at.allow
185 .Pa _PERM_PATH/at.deny .
188 .Pa _PERM_PATH/at.allow
189 exists, only usernames mentioned in it are allowed to use
192 a user is considered to be listed
193 only if the user name has no blank or other characters
194 before it on its line and a newline character immediately after the name,
195 even at the end of the file.
196 Other lines are ignored and may be used for comments.
199 .Pa _PERM_PATH/at.allow
201 .Pa _PERM_PATH/at.deny
202 is checked, every username not mentioned in it is then allowed
206 If neither exists, only the superuser is allowed use of
208 .Sh IMPLEMENTATION NOTES
211 is implemented through the
213 daemon periodically invoking
215 which is disabled by default.
218 for information about enabling
221 .Bl -tag -width indent
226 Cat the jobs listed on the command line to standard output.
230 (this option is deprecated; use
236 rather than standard input.
238 With no arguments, list all jobs for the invoking user.
240 job numbers are given, list only those jobs.
242 Send mail to the user when the job has completed even if there was no
245 Use the specified queue.
246 A queue designation consists of a single letter; valid queue designations
256 .Ar _DEFAULT_AT_QUEUE
257 queue (a) is the default for
260 .Ar _DEFAULT_BATCH_QUEUE
261 queue (b) is the default for
263 Queues with higher letters run with increased niceness.
264 If a job is submitted to a queue designated with an uppercase letter, it
265 is treated as if it had been submitted to batch at that time.
268 is given a specific queue, it will only show jobs pending in that queue.
270 Remove the specified jobs.
272 Specify the job time using the \*[Px] time format.
273 The argument should be in the form
275 .Op Oo Ar CC Oc Ar YY
276 .Ar MM DD hh mm Op . Ar SS
278 where each pair of letters represents the following:
280 .Bl -tag -width indent -compact -offset indent
282 The first two digits of the year (the century).
284 The second two digits of the year.
286 The month of the year, from 1 to 12.
288 the day of the month, from 1 to 31.
290 The hour of the day, from 0 to 23.
292 The minute of the hour, from 0 to 59.
294 The second of the minute, from 0 to 61.
301 letter pairs are not specified, the values default to the current
305 letter pair is not specified, the value defaults to 0.
309 shows completed but not yet deleted jobs in the queue; otherwise
310 shows the time the job will be executed.
313 .Bl -tag -width _ATJOB_DIR/_LOCKFILE -compact
315 directory containing job files
316 (/usr/lib/cron/jobs/)
317 .It Pa _ATJOB_DIR/_LOCKFILE
318 job-creation lock file
319 (/usr/lib/cron/jobs/...)
321 directory containing output spool files
322 (/usr/lib/cron/spool/)
323 .It Pa _PERM_PATH/at.allow
324 allow permission control
325 (/usr/lib/cron/at.allow)
326 .It Pa _PERM_PATH/at.deny
327 deny permission control
328 (/usr/lib/cron/at.deny)
329 .It Pa /var/run/utmpx
343 is not available or corrupted,
344 or if the user is not logged on at the time
346 is invoked, the mail is sent to the userid found
347 in the environment variable
349 If that is undefined or empty, the current userid is assumed.
356 as presently implemented are not suitable when users are competing for
358 If this is the case, another batch system such as
360 may be more suitable.
362 Specifying a date past 2038 may not work on some systems.
364 At was mostly written by
365 .An Thomas Koenig Aq ig25@rz.uni-karlsruhe.de .
366 The time parsing routines are by
367 .An David Parsons Aq orc@pell.chi.il.us ,
368 with minor enhancements by
369 .An Joe Halpin Aq joe.halpin@attbi.com .