version 1.10, 1999/06/05 01:21:17 |
version 1.11, 1999/07/04 11:53:51 |
|
|
.Dt AT 1 |
.Dt AT 1 |
.Os |
.Os |
.Sh NAME |
.Sh NAME |
.Nm at, atq, atrm, batch |
.Nm at , |
|
.Nm atq , |
|
.Nm atrm , |
|
.Nm batch |
.Nd queue, examine or delete jobs for later execution |
.Nd queue, examine or delete jobs for later execution |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm at |
.Nm at |
|
|
.Op Fl mv |
.Op Fl mv |
.Op Ar time |
.Op Ar time |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm at |
.Nm |
and |
and |
.Nm batch |
.Nm batch |
read commands from standard input or a specified file which |
read commands from standard input or a specified file which |
|
|
.Nm atrun . |
.Nm atrun . |
.El |
.El |
.Pp |
.Pp |
.Nm at |
.Nm |
allows some moderately complex |
allows some moderately complex |
.Ar time |
.Ar time |
specifications. It accepts times of the form |
specifications. It accepts times of the form |
|
|
or |
or |
.Nm weeks |
.Nm weeks |
and you can tell |
and you can tell |
.Nm at |
.Nm |
to run the job today by suffixing the time with |
to run the job today by suffixing the time with |
.Nm today |
.Nm today |
and to run the job tomorrow by suffixing the time with |
and to run the job tomorrow by suffixing the time with |
|
|
.Nm at 1am tomorrow . |
.Nm at 1am tomorrow . |
.Pp |
.Pp |
For both |
For both |
.Nm at |
.Nm |
and |
and |
.Nm batch , |
.Nm batch , |
commands are read from standard input or the file specified |
commands are read from standard input or the file specified |
|
|
.Ar umask |
.Ar umask |
are retained from the time of invocation. |
are retained from the time of invocation. |
An |
An |
.Nm at |
.Nm |
or |
or |
.Nm batch |
.Nm batch |
command invoked from a |
command invoked from a |
|
|
commands, if any. Mail will be sent using the command |
commands, if any. Mail will be sent using the command |
.Xr sendmail 8 . |
.Xr sendmail 8 . |
If |
If |
.Nm at |
.Nm |
is executed from a |
is executed from a |
.Xr su 1 |
.Xr su 1 |
shell, the owner of the login shell will receive the mail. |
shell, the owner of the login shell will receive the mail. |
|
|
The |
The |
.Nm c |
.Nm c |
queue is the default for |
queue is the default for |
.Nm at |
.Nm |
and the |
and the |
.Nm E |
.Nm E |
queue for |
queue for |
|
|
.Pa /var/run/utmp |
.Pa /var/run/utmp |
is not available or corrupted, or if the user is not logged on at the |
is not available or corrupted, or if the user is not logged on at the |
time |
time |
.Nm at |
.Nm |
is invoked, the mail is sent to the user ID found |
is invoked, the mail is sent to the user ID found |
in the environment variable |
in the environment variable |
.Ev LOGNAME . |
.Ev LOGNAME . |
If that is undefined or empty, the current user ID is assumed. |
If that is undefined or empty, the current user ID is assumed. |
.Pp |
.Pp |
.Nm at |
.Nm |
and |
and |
.Nm batch |
.Nm batch |
as presently implemented are not suitable when users are competing for |
as presently implemented are not suitable when users are competing for |
|
|
batch system, such as |
batch system, such as |
.Nm nqs . |
.Nm nqs . |
.Sh AUTHORS |
.Sh AUTHORS |
.Nm at |
.Nm |
was mostly written by Thomas Koenig <ig25@rz.uni-karlsruhe.de>. |
was mostly written by Thomas Koenig <ig25@rz.uni-karlsruhe.de>. |
The time parsing routines are by David Parsons <orc@pell.chi.il.us>. |
The time parsing routines are by David Parsons <orc@pell.chi.il.us>. |