AT(1) — USER COMMANDS
NAME
at − execute commands at a later time
SYNOPSIS
at time [ day ] [ file ]
DESCRIPTION
At squirrels away a copy of the named file (standard input default) to be used as input to sh(1) or csh(1) at a specified later time. At inserts a cd command to the current directory at the beginning of the copy file, and follows this with assignments to all environment variables (except TERM, which is useless in this context.) When the script is run, it uses the user and group ID of the creator of the copy file.
Time is specified by from 1 to 4 digits, and may be followed by ‘a’, ‘p’, ‘n’ or ‘m’ for AM, PM, noon, or midnight (letters may be upper or lower case). One and two digit numbers are taken to be hours, three and four digits to be hours and minutes. If no letters follow the digits, a 24 hour clock time is understood.
Day may be either a month name followed by a day number — for example, ‘apr 26’ — or a day of the week — ‘weds’, for instance. If you name a day of the week and follow this with the word ‘week’ — ‘weds week’ — invocation is moved seven days further off. Names of months and days may be recognizably truncated.
At programs are executed by periodic execution of the command /usr/lib/atrun from cron(8). The granularity of at depends upon how often atrun is executed.
Standard output or error output is lost unless redirected.
EXAMPLES
Examples of legitimate commands are:
at 8a jan 24 at 1530 fr week
FILES
/usr/lib/atrunexecutor (run by cron(8)). in /usr/spool/at:
yy.ddd.hhhh.∗activity for year yy, day dd, hour hhhh.
lasttimedonelast hhhh
pastactivities in progress
SEE ALSO
calendar(1), pwd(1), sleep(1), cron(8)
BUGS
Due to the granularity of the execution of /usr/lib/atrun, there may be bugs in scheduling things almost exactly 24 hours into the future.
Sun Release 3.0β — Last change: 1 November 1983