BSD 3 development
[unix-history] / usr / man / man1 / at.1
CommitLineData
74506ec1
BJ
1.TH AT 1
2.SH NAME
3at \- execute commands at a later time
4.SH SYNOPSIS
5.B at
6time
7[
8day
9]
10[
11file
12]
13.SH DESCRIPTION
14.I At
15squirrels away a copy of the named
16.I file
17(standard input default)
18to be used as input to
19.IR sh (1)
20at a specified later time.
21A
22.IR cd (1)
23command to the current directory is inserted
24at the beginning,
25followed by assignments to all environment variables.
26When the script is run, it uses the user and group ID
27of the creator of the copy file.
28.PP
29The
30.I time
31is 1 to 4 digits, with an optional following
32`A', `P', `N' or `M' for
33AM, PM, noon or midnight.
34One and two digit numbers are taken to be hours, three and four digits
35to be hours and minutes.
36If no letters follow the digits, a 24 hour clock time is understood.
37.PP
38The optional
39.I day
40is either
41(1) a month name followed by a day number,
42or
43(2) a day of the week; if the word `week' follows
44invocation is moved seven days further off.
45Names of months and days may be recognizably truncated.
46Examples of legitimate commands are
47.IP
48at 8am jan 24
49.br
50at 1530 fr week
51.PP
52.I At
53programs are executed by periodic execution
54of the command
55.I /usr/lib/atrun
56from
57.IR cron (1m).
58The granularity of
59.I at
60depends upon how often
61.I atrun
62is executed.
63.PP
64Standard output or error output is lost unless redirected.
65.SH FILES
66/usr/spool/at/yy.ddd.hhhh.uu
67.br
68activity to be performed at hour
69.I hhhh
70of year day
71.I ddd
72of year
73.IR yy .
74.I uu
75is a unique number.
76.br
77/usr/spool/at/lasttimedone contains
78.I hhhh
79for last hour of activity.
80.br
81/usr/spool/at/past directory of activities now in progress
82.br
83/usr/lib/atrun program that executes activities that
84are due
85.br
86pwd(1)
87.SH "SEE ALSO"
88calendar(1),
89cron(1m)
90.SH DIAGNOSTICS
91Complains about various syntax errors and times out of range.
92.SH BUGS
93Due to the granularity of the execution of
94.I /usr/lib/atrun,
95there may be bugs in scheduling things almost
96exactly 24 hours into the future.