272
If the set of commands or script tries to display information to standard out, the output is emailed to
the user.
Use the command
atq
information.
Usage
of
the
Section 37.2.5 Controlling Access to At and Batch for details.
37.2.2. Configuring Batch Jobs
To execute a one-time task when the load average is below 0.8, use the
After typing the
batch
[Enter], and type Ctrl-D. More than one command can be specified by typing each command followed
by the [Enter] key. After typing all the commands, press [Enter] to go to a blank line and type Ctrl-D.
Alternatively, a shell script can be entered at the prompt, pressing [Enter] after each line in the script,
and typing Ctrl-D on a blank line to exit. If a script is entered, the shell used is the shell set in the
user's SHELL environment, the user's login shell, or
the load average is below 0.8, the set of commands or script is executed.
If the set of commands or script tries to display information to standard out, the output is emailed to
the user.
Use the command
atq
information.
Usage
of
the
Section 37.2.5 Controlling Access to At and Batch for details.
37.2.3. Viewing Pending Jobs
To view pending
at
each job on a line. Each line follows the job number, date, hour, job class, and username format. Users
can only view their own jobs. If the root user executes the
displayed.
37.2.4. Additional Command Line Options
Additional command line options for
Option
-f
-m
-v
Table 37-1.
and
at
batch
37.2.5. Controlling Access to At and Batch
The
/etc/at.allow
to view pending jobs. Refer to Section 37.2.3 Viewing Pending Jobs for more
command
at
command, the
at>
to view pending jobs. Refer to Section 37.2.3 Viewing Pending Jobs for more
command
batch
and
jobs, use the
batch
and
at
Description
Read the commands or shell script from a file instead of specifying
them at the prompt.
Send email to the user when the job has been completed.
Display the time that the job will be executed.
Command Line Options
and
/etc/at.deny
can
be
prompt is displayed. Type the command to execute, press
(whichever is found first). As soon as
/bin/sh
can
command. It displays a list of pending jobs, with
atq
atq
include:
batch
files can be used to restrict access to the
Chapter 37. Automated Tasks
restricted.
command.
batch
be
restricted.
command, all jobs for all users are
Refer
to
Refer
to
and
at
batch
Need help?
Do you have a question about the ENTERPRISE LINUX 3 and is the answer not in the manual?