1 .\" $NetBSD: at.1,v 1.23 2008/03/11 01:04:18 christos Exp $
2 .\" $OpenBSD: at.1,v 1.6 1998/06/05 00:47:46 deraadt Exp $
3 .\" $FreeBSD: at.man,v 1.6 1997/02/22 19:54:05 peter Exp $
12 .Nd queue, examine or delete jobs for later execution
18 .Fl t Ar [[CC]YY]MMDDhhmm[.SS]
26 .Fl c Ar job Op Ar job ...
38 .Op Fl t Ar [[CC]YY]MMDDhhmm[.SS]
48 read commands from standard input or a specified file which
49 are to be executed at a later time, using
51 .Bl -tag -width indent
53 Executes commands at a specified time.
55 Lists the user's pending jobs, unless the user is the superuser.
56 In that case, everybody's jobs are listed.
60 Executes commands when system load levels permit.
62 the load average drops below 1.5, or the value specified in the invocation of
67 allows some moderately complex
70 It accepts times of the form
74 to run a job at a specific time of day.
75 (If that time is already past, the next day is assumed.)
82 and you can have a time-of-day suffixed with
86 for running in the morning or the evening.
87 You can also say what day the job will be run,
88 by giving a date in the form
92 or giving a date of the form
98 The specification of a date must follow the specification of
100 You can also give times like
104 .Sq + Ar count %time-units ,
105 where the time-units can be
115 to run the job today by suffixing the time with
117 and to run the job tomorrow by suffixing the time with
120 For example, to run a job at 4pm three days from now, you would do
121 .Dl at 4pm + 3 days ,
122 to run a job at 10:00am on July 31, you would do
124 and to run a job at 1am tomorrow, you would do
125 .Dl at 1am tomorrow .
127 Alternatively the time may be specified in a language-neutral fashion
136 commands are read from standard input or the file specified
140 The working directory, the environment (except for the variables
148 are retained from the time of invocation.
153 command invoked from a
155 shell will retain the current userid.
156 The user will be mailed standard error and standard output from his
158 Mail will be sent using the command
164 shell, the owner of the login shell will receive the mail.
166 The superuser may use these commands in any case.
167 For other users, permission to use at is determined by the files
170 .Pa /var/at/at.deny .
174 exists, only usernames mentioned in it are allowed to use
181 is checked, every username not mentioned in it is then allowed
185 If neither exists, only the superuser is allowed use of
190 means that every user is allowed use these commands.
191 This is the default configuration.
193 .Bl -tag -offset indent -width XqXqueueXX
198 Cats the jobs listed on the command line to standard output.
205 rather than standard input.
210 Send mail to the user when the job has completed even if there was no
213 Uses the specified queue.
214 A queue designation consists of a single letter.
215 Valid queue designations
226 queue is the default for
232 Queues with higher letters run with increased niceness.
233 If a job is submitted to a queue designated with an uppercase letter, it
234 is treated as if it had been submitted to batch at that time.
237 is given a specific queue, it will only show jobs pending in that queue.
246 the time may be specified in a language-neutral format consisting of:
247 .Bl -tag -width Ds -compact -offset indent
249 The first two digits of the year (the century).
251 The second two digits of the year.
258 between 69 and 99 results in a
265 The month of the year, from 01 to 12.
267 The day of the month, from 01 to 31.
269 The hour of the day, from 00 to 23.
271 The minute of the hour, from 00 to 59.
273 The second of the minute, from 00 to 61.
276 Prints the version number to standard error.
280 shows completed but not yet deleted jobs in the queue.
281 Otherwise shows the time the job will be executed.
284 .Bl -tag -width /var/at/.lockfile -compact
286 Directory containing job files
288 Directory containing output spool files
291 .It Pa /var/at/at.allow
292 Allow permission control
293 .It Pa /var/at/at.deny
294 Deny permission control
295 .It Pa /var/at/.lockfile
296 Job-creation lock file.
313 At was mostly written by Thomas Koenig \*[Lt]ig25@rz.uni-karlsruhe.de\*[Gt].
314 The time parsing routines are by David Parsons \*[Lt]orc@pell.chi.il.us\*[Gt].
318 is not available or corrupted, or if the user is not logged on at the
321 is invoked, the mail is sent to the userid found
322 in the environment variable
324 If that is undefined or empty, the current userid is assumed.
329 as presently implemented are not suitable when users are competing for
331 If this is the case for your site, you might want to consider another
332 batch system, such as