home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
programs
/
textual
/
zap
/
zapman
/
manpage
Wrap
Text File
|
1998-03-26
|
5KB
|
97 lines
AT(1) NetBSD Reference Manual AT(1)
NNAAMMEE
aatt,, bbaattcchh,, aattqq,, aattrrmm - queue, examine, or delete jobs for later execution
SSYYNNOOPPSSIISS
aatt [--qq _q_u_e_u_e] [--ff _f_i_l_e] [--mm] _t_i_m_e
aattqq [--qq _q_u_e_u_e] [--vv]
aattrrmm _j_o_b [_j_o_b _._._.]
bbaattcchh [--ff _f_i_l_e] [--mm]
DDEESSCCRRIIPPTTIIOONN
The aatt and bbaattcchh utilities read commands from the standard input or a
specified file which are to be executed at a later time, using sh(1).
The functions of the commands are as follows:
aatt Executes commands at a specified time.
aattqq Lists the user's pending jobs, unless the user is the superuser.
In that case, everybody's jobs are listed.
aattrrmm Deletes jobs.
bbaattcchh executes commands when system load levels permit. In other
words, it executes the commands when the load average drops below
a specified level.
For both aatt and bbaattcchh, the working directory, environment (except for the
variables TTEERRMM, TTEERRMMCCAAPP, DDIISSPPLLAAYY, and __) and the umask are retained from
the time of invocation. The user will be mailed the standard output and
standard error from his commands if any output is generated. If aatt is
executed from a su(1) shell, the owner of the login shell will receive
the mail.
OOPPTTIIOONNSS
The available options are as follows:
--qq _q_u_e_u_e
Use the specified queue. A queue designation consists of a sin-
gle letter; valid queue designation range from _a to _l. The _a
queue is the default, and _b is the batch queue. Queues with
higher letters run with increased niceness. If aattqq is given a
specific queue, it will only show jobs pending in that queue.
--mm Send mail to the user when the job has completed, even if there
was no output.
--ff _f_i_l_e
Reads the job from _f_i_l_e rather than the standard input.
--vv Shows completed but not yet deleted jobs in the queue.
TTIIMMEE SSPPEECCIIFFIICCAATTIIOONN
AAtt allows some moderately complex time specifications. It accepts times
of the form _H_H_M_M or _H_H_:_M_M to run a job at a specific time of day. If
that time is already passed, the next day is assumed. You may also spec-
ify mmiiddnniigghhtt, nnoooonn, or tteeaattiimmee (4PM) and you can give a time of day suf-
fixed with AAMM or PPMM for running in the morning or the evening. You can
also specify the date on which the job will be run by giving a date in
the form _m_o_n_t_h_-_n_a_m_e _d_a_y with an optional _y_e_a_r, or giving a date of the
form _M_M_D_D_Y_Y, _M_M_/_D_D_/_Y_Y or _D_D_._M_M_._Y_Y. You can also give times like nnooww ++
_c_o_u_n_t _t_i_m_e_-_u_n_i_t_s, where the time units can be mmiinnuutteess,, hhoouurrss,, ddaayyss,, or
wweeeekkss You can suffix the time with ttooddaayy to run the job today, or
ttoommoorrrrooww to run the job tomorrow.
For example, to run a job at 4PM three days from now, you would specify a
time of 44PPMM ++ 33 ddaayyss. To run a job at 10:00AM on on July 31, you would
specify a time of 1100AAMM JJuull 3311. Finally, to run a job at 1AM tomorrow, you
would specify a time of 11AAMM ttoommoorrrrooww.
FFIILLEESS
/var/at/jobs Directory containing job files
/var/at/spool Directory containing output spool files
/var/at/lockfile Job-creation lock file.
/var/run/utmp
SSEEEE AALLSSOO
cron(8), nice(1), sh(1), atrun(8)
AAUUTTHHOORR
Thomas Koenig, ig25@rz.uni-karlsruhe.de
BBUUGGSS
Traditional access control to aatt and bbaattcchh via the files _/_v_a_r_/_a_t_/_a_t_._a_l_l_o_w
and _/_v_a_r_/_a_t_/_a_t_._d_e_n_y is not implemented.
If the file _/_v_a_r_/_r_u_n_/_u_t_m_p is not available or corrupted, or if the user
is not logged in at the time aatt is invoked, the mail is sent to the
userid found in the environment variable LLOOGGNNAAMMEE. If that is undefined or
empty, the current userid is assumed.
NetBSD 0.9a June 24, 1996 2