Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ at.bsd(1) — Domain/IX SR9.2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

AT(1)

NAME

at − execute commands at a later time

USAGE

at time [ day ] [ file ]

DESCRIPTION

At retains 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 first inserts a cd (1) command to the current directory, and then assigns all environment variables except TERM.  The Shell script then employs the user and group ID of the creator of the copy file. 

The time argument can be one to four digits, optionally ending in A, P, N, or M for AM, PM, noon, or midnight.  At interprets one- and two-digit numbers to be hours, three and four digits to be hours and minutes.  If no letters follow the digits, it assumes a 24-hour clock. 

The optional day is either a month name followed by a day number, or a day of the week.  If the word “week” follows, invocation is moved seven days further off.  Names of months and days may be recognizably truncated. 

At programs are run by periodic execution of the command /usr/lib/atrun from cron (8). 

EXAMPLES

To run agenda at 8 a.m. on January 24, type the following command:

at 8am jan 24 agenda

To run agenda at 3:30 p.m. a week from next Friday, type this:

at 1530 fr week agenda

CAUTIONS

The granularity of at depends upon how often atrun is executed.  Problems may occur in scheduling activities to take place almost exactly 24 hours into the future. 

Standard output and error output is lost unless redirected. 

DIAGNOSTICS

Complains about various syntax errors and times out of range. 

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

RELATED INFORMATION

calendar (1), pwd (1), sleep (1), cron (8). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026