Controlling Access to At and Batch
509
Option
Description
-f
Read the commands or shell script from a file instead of specifying
them at the prompt.
-m
Send email to the user when the job has been completed.
-v
Display the time that the job is executed.
Table 35.1.
at
and
batch
Command Line Options
35.2.5. Controlling Access to At and Batch
The
/etc/at.allow
and
/etc/at.deny
files can be used to restrict access to the
at
and
batch
commands. The format of both access control files is one username on each line. Whitespace is not
permitted in either file. The
at
daemon (
atd
) does not have to be restarted if the access control files
are modified. The access control files are read each time a user tries to execute the
at
or
batch
commands.
The root user can always execute
at
and
batch
commands, regardless of the access control files.
If the file
at.allow
exists, only users listed in it are allowed to use
at
or
batch
, and the
at.deny
file is ignored.
If
at.allow
does not exist, users listed in
at.deny
are not allowed to use
at
or
batch
.
35.2.6. Starting and Stopping the Service
To start the
at
service, use the command
/sbin/service atd start
. To stop the service, use
the command
/sbin/service atd stop
. It is recommended that you start the service at boot
time. Refer to
Chapter 16, Controlling Access to Services
for details on starting the cron service
automatically at boot time.
35.3. Additional Resources
To learn more about configuring automated tasks, refer to the following resources.
35.3.1. Installed Documentation
•
cron
man page — overview of cron.
•
crontab
man pages in sections 1 and 5 — The man page in section 1 contains an overview of the
crontab
file. The man page in section 5 contains the format for the file and some example entries.
•
/usr/share/doc/at-
<version>
/timespec
contains more detailed information about the times
that can be specified for cron jobs.
•
at
man page — description of
at
and
batch
and their command line options.
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...