1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY at-download-http "http://ftp.debian.org/debian/pool/main/a/at/at_&at-version;.orig.tar.gz">
|
---|
8 | <!ENTITY at-download-ftp " ">
|
---|
9 | <!ENTITY at-md5sum "1cec945506b5ddf1d776c92c315fc581">
|
---|
10 | <!ENTITY at-size "272 KB">
|
---|
11 | <!ENTITY at-buildsize "1.6 MB">
|
---|
12 | <!ENTITY at-time "less than 0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="at" xreflabel="Fcron-&at-version;">
|
---|
16 | <?dbhtml filename="at.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>at-&at-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="at">
|
---|
26 | <primary sortas="a-at">at</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to at</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | The <application>at</application> package provide delayed job execution
|
---|
34 | and batch processing. It is required for Linux Standards Base (LSB)
|
---|
35 | conformance.
|
---|
36 | </para>
|
---|
37 |
|
---|
38 | &lfs91_checked;
|
---|
39 |
|
---|
40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
41 | <itemizedlist spacing="compact">
|
---|
42 | <listitem>
|
---|
43 | <para>
|
---|
44 | Download (HTTP): <ulink url="&at-download-http;"/>
|
---|
45 | </para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download (FTP): <ulink url="&at-download-ftp;"/>
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download MD5 sum: &at-md5sum;
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Download size: &at-size;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Estimated disk space required: &at-buildsize;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>
|
---|
69 | Estimated build time: &at-time;
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | </itemizedlist>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect3">at Dependencies</bridgehead>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
77 | <para role="required">
|
---|
78 | An <xref linkend="server-mail"/>
|
---|
79 | </para>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
82 | <para role="optional">
|
---|
83 | <xref linkend="linux-pam"/>
|
---|
84 | </para>
|
---|
85 |
|
---|
86 | <para condition="html" role="usernotes">User Notes:
|
---|
87 | <ulink url="&blfs-wiki;/at"/></para>
|
---|
88 |
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 | <sect2 role="installation">
|
---|
92 | <title>Installation of at</title>
|
---|
93 |
|
---|
94 | <para>
|
---|
95 | Before building <application>at</application>, as the
|
---|
96 | <systemitem class="username">root</systemitem> user you should create
|
---|
97 | the group and user <systemitem class="username">atd</systemitem> which
|
---|
98 | will run the <command>atd</command> daemon. Also ensure the working
|
---|
99 | directory for the daemon exists:
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <screen role="root"><userinput>groupadd -g 17 atd &&
|
---|
103 | useradd -d /dev/null -c "atd daemon" -g atd -s /bin/false -u 17 atd &&
|
---|
104 | mkdir -p /var/spool/cron</userinput></screen>
|
---|
105 |
|
---|
106 | <para>
|
---|
107 | Fix <filename>Makefile.in</filename> so that the documentation directory
|
---|
108 | is installed in the specified docdir:
|
---|
109 | </para>
|
---|
110 |
|
---|
111 | <screen><userinput>sed -i '/docdir/s/=.*/= @docdir@/' Makefile.in</userinput></screen>
|
---|
112 |
|
---|
113 | <para>
|
---|
114 | Regenerate the build files to be consistent with this package version:
|
---|
115 | </para>
|
---|
116 |
|
---|
117 | <screen><userinput>autoreconf</userinput></screen>
|
---|
118 |
|
---|
119 | <para>
|
---|
120 | Install <application>at</application> with the following
|
---|
121 | commands:
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <screen revision="sysv"><userinput>./configure --with-daemon_username=atd \
|
---|
125 | --with-daemon_groupname=atd \
|
---|
126 | SENDMAIL=/usr/sbin/sendmail &&
|
---|
127 |
|
---|
128 | make -j1</userinput></screen>
|
---|
129 |
|
---|
130 | <screen revision="systemd"><userinput>./configure --with-daemon_username=atd \
|
---|
131 | --with-daemon_groupname=atd \
|
---|
132 | SENDMAIL=/usr/sbin/sendmail \
|
---|
133 | --with-systemdsystemunitdir=/lib/systemd/system &&
|
---|
134 | make -j1</userinput></screen>
|
---|
135 |
|
---|
136 | <para>
|
---|
137 | This package does not come with a test suite.
|
---|
138 | </para>
|
---|
139 |
|
---|
140 | <para>
|
---|
141 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
142 | </para>
|
---|
143 |
|
---|
144 | <screen role="root"><userinput>make install docdir=/usr/share/doc/at-&at-version; \
|
---|
145 | atdocdir=/usr/share/doc/at-&at-version;</userinput></screen>
|
---|
146 |
|
---|
147 | </sect2>
|
---|
148 |
|
---|
149 | <sect2 role="configuration">
|
---|
150 | <title>Configuring at</title>
|
---|
151 |
|
---|
152 | <sect3 id="at-config">
|
---|
153 | <title>Config Files</title>
|
---|
154 |
|
---|
155 | <para>
|
---|
156 | <filename>/etc/at.allow</filename> and
|
---|
157 | <filename>/etc/at.deny</filename> determines who can submit jobs via at
|
---|
158 | or batch.
|
---|
159 | </para>
|
---|
160 |
|
---|
161 | <indexterm zone="at at-config">
|
---|
162 | <primary sortas="e-etc-at.allow">/etc/at.allow</primary>
|
---|
163 | </indexterm>
|
---|
164 |
|
---|
165 | <indexterm zone="at at-config">
|
---|
166 | <primary sortas="e-etc-at.deny">/etc/at.deny</primary>
|
---|
167 | </indexterm>
|
---|
168 |
|
---|
169 | </sect3>
|
---|
170 |
|
---|
171 | <sect3 id="at-init">
|
---|
172 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
173 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
174 |
|
---|
175 | <para revision="sysv">
|
---|
176 | Install the <filename>/etc/init.d/atd</filename>
|
---|
177 | init script from the <xref linkend="bootscripts"/> package.
|
---|
178 | </para>
|
---|
179 |
|
---|
180 | <para revision="systemd">
|
---|
181 | To start the <command>atd</command> daemon at boot,
|
---|
182 | enable the previously installed systemd unit by
|
---|
183 | running the following command as the
|
---|
184 | <systemitem class="username">root</systemitem> user:
|
---|
185 | </para>
|
---|
186 |
|
---|
187 | <indexterm zone="at at-init">
|
---|
188 | <primary sortas="f-at">at</primary>
|
---|
189 | </indexterm>
|
---|
190 |
|
---|
191 | <screen role="root" revision="sysv"><userinput>make install-atd</userinput></screen>
|
---|
192 |
|
---|
193 | <screen role="root" revision="systemd"><userinput>systemctl enable atd</userinput></screen>
|
---|
194 |
|
---|
195 | </sect3>
|
---|
196 |
|
---|
197 | </sect2>
|
---|
198 |
|
---|
199 | <sect2 role="content">
|
---|
200 | <title>Contents</title>
|
---|
201 |
|
---|
202 | <segmentedlist>
|
---|
203 | <segtitle>Installed Programs</segtitle>
|
---|
204 | <segtitle>Installed Libraries</segtitle>
|
---|
205 | <segtitle>Installed Directories</segtitle>
|
---|
206 |
|
---|
207 | <seglistitem>
|
---|
208 | <seg>
|
---|
209 | at, atd, atq (symlink), atrm (symlink), atrun, and batch
|
---|
210 | </seg>
|
---|
211 | <seg>
|
---|
212 | None
|
---|
213 | </seg>
|
---|
214 | <seg>
|
---|
215 | /var/spool/cron/at{jobs,spool} and
|
---|
216 | /usr/share/doc/at-&at-version;
|
---|
217 | </seg>
|
---|
218 | </seglistitem>
|
---|
219 | </segmentedlist>
|
---|
220 |
|
---|
221 | <variablelist>
|
---|
222 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
223 | <?dbfo list-presentation="list"?>
|
---|
224 | <?dbhtml list-presentation="table"?>
|
---|
225 |
|
---|
226 | <varlistentry id="at-prog">
|
---|
227 | <term><command>at</command></term>
|
---|
228 | <listitem>
|
---|
229 | <para>
|
---|
230 | queues, examines or deletes jobs for later execution.
|
---|
231 | </para>
|
---|
232 | <indexterm zone="at at-prog">
|
---|
233 | <primary sortas="b-at">at</primary>
|
---|
234 | </indexterm>
|
---|
235 | </listitem>
|
---|
236 | </varlistentry>
|
---|
237 |
|
---|
238 | <varlistentry id="atd">
|
---|
239 | <term><command>atd</command></term>
|
---|
240 | <listitem>
|
---|
241 | <para>
|
---|
242 | is the daemon that runs jobs queued for later execution.
|
---|
243 | </para>
|
---|
244 | <indexterm zone="at atd">
|
---|
245 | <primary sortas="b-atd">atd</primary>
|
---|
246 | </indexterm>
|
---|
247 | </listitem>
|
---|
248 | </varlistentry>
|
---|
249 |
|
---|
250 | <varlistentry id="atq">
|
---|
251 | <term><command>atq</command></term>
|
---|
252 | <listitem>
|
---|
253 | <para>
|
---|
254 | lists the user's pending jobs, or all jobs, if superuser.
|
---|
255 | </para>
|
---|
256 | <indexterm zone="at atq">
|
---|
257 | <primary sortas="b-atq">atq</primary>
|
---|
258 | </indexterm>
|
---|
259 | </listitem>
|
---|
260 | </varlistentry>
|
---|
261 |
|
---|
262 | <varlistentry id="atrm">
|
---|
263 | <term><command>atrm</command></term>
|
---|
264 | <listitem>
|
---|
265 | <para>
|
---|
266 | deletes jobs, identified by their job number.
|
---|
267 | </para>
|
---|
268 | <indexterm zone="at atrm">
|
---|
269 | <primary sortas="b-atrm">atrm</primary>
|
---|
270 | </indexterm>
|
---|
271 | </listitem>
|
---|
272 | </varlistentry>
|
---|
273 |
|
---|
274 | <varlistentry id="atrun">
|
---|
275 | <term><command>atrun</command></term>
|
---|
276 | <listitem>
|
---|
277 | <para>
|
---|
278 | runs jobs queued for later execution.
|
---|
279 | </para>
|
---|
280 | <indexterm zone="at atrun">
|
---|
281 | <primary sortas="b-atrun">atrun</primary>
|
---|
282 | </indexterm>
|
---|
283 | </listitem>
|
---|
284 | </varlistentry>
|
---|
285 |
|
---|
286 | <varlistentry id="batch">
|
---|
287 | <term><command>batch</command></term>
|
---|
288 | <listitem>
|
---|
289 | <para>
|
---|
290 | is a script that executes commands when system load levels permit.
|
---|
291 | </para>
|
---|
292 | <indexterm zone="at batch">
|
---|
293 | <primary sortas="b-batch">batch</primary>
|
---|
294 | </indexterm>
|
---|
295 | </listitem>
|
---|
296 | </varlistentry>
|
---|
297 |
|
---|
298 | </variablelist>
|
---|
299 |
|
---|
300 | </sect2>
|
---|
301 |
|
---|
302 | </sect1>
|
---|