[eedba153] | 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 |
|
---|
[15b2a2c2] | 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 " ">
|
---|
[770e6979] | 9 | <!ENTITY at-md5sum "1cec945506b5ddf1d776c92c315fc581">
|
---|
| 10 | <!ENTITY at-size "272 KB">
|
---|
| 11 | <!ENTITY at-buildsize "1.6 MB">
|
---|
[fa7ae3f3] | 12 | <!ENTITY at-time "less than 0.1 SBU">
|
---|
[eedba153] | 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 |
|
---|
[b1532549] | 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>
|
---|
[eedba153] | 37 |
|
---|
[7ffeb4bd] | 38 | &lfs91_checked;
|
---|
[eedba153] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[b1532549] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&at-download-http;"/>
|
---|
| 45 | </para>
|
---|
[eedba153] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[b1532549] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&at-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[eedba153] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[b1532549] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &at-md5sum;
|
---|
| 55 | </para>
|
---|
[eedba153] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[b1532549] | 58 | <para>
|
---|
| 59 | Download size: &at-size;
|
---|
| 60 | </para>
|
---|
[eedba153] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[b1532549] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &at-buildsize;
|
---|
| 65 | </para>
|
---|
[eedba153] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[b1532549] | 68 | <para>
|
---|
| 69 | Estimated build time: &at-time;
|
---|
| 70 | </para>
|
---|
[eedba153] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">at Dependencies</bridgehead>
|
---|
| 75 |
|
---|
[4ad93b6] | 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 77 | <para role="required">
|
---|
[af8e3ea3] | 78 | An <xref linkend="server-mail"/>
|
---|
[4ad93b6] | 79 | </para>
|
---|
| 80 |
|
---|
[eedba153] | 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 |
|
---|
[b1532549] | 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>
|
---|
[eedba153] | 101 |
|
---|
[6d2cc23] | 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>
|
---|
[eedba153] | 105 |
|
---|
[885068f0] | 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 |
|
---|
[3d6df725] | 113 | <para>
|
---|
| 114 | Regenerate the build files to be consistent with this package version:
|
---|
| 115 | </para>
|
---|
| 116 |
|
---|
| 117 | <screen><userinput>autoreconf</userinput></screen>
|
---|
| 118 |
|
---|
[b1532549] | 119 | <para>
|
---|
| 120 | Install <application>at</application> with the following
|
---|
| 121 | commands:
|
---|
| 122 | </para>
|
---|
[eedba153] | 123 |
|
---|
[d5497a2e] | 124 | <screen revision="sysv"><userinput>./configure --with-daemon_username=atd \
|
---|
[df9fb20] | 125 | --with-daemon_groupname=atd \
|
---|
[b0b87ad6] | 126 | SENDMAIL=/usr/sbin/sendmail &&
|
---|
[909a015] | 127 |
|
---|
[a1995fc] | 128 | make -j1</userinput></screen>
|
---|
[eedba153] | 129 |
|
---|
[d5497a2e] | 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 |
|
---|
[b1532549] | 136 | <para>
|
---|
| 137 | This package does not come with a test suite.
|
---|
| 138 | </para>
|
---|
[eedba153] | 139 |
|
---|
[b1532549] | 140 | <para>
|
---|
| 141 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 142 | </para>
|
---|
[eedba153] | 143 |
|
---|
[4647dd7] | 144 | <screen role="root"><userinput>make install docdir=/usr/share/doc/at-&at-version; \
|
---|
| 145 | atdocdir=/usr/share/doc/at-&at-version;</userinput></screen>
|
---|
[eedba153] | 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 |
|
---|
[b1532549] | 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>
|
---|
[eedba153] | 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">
|
---|
[d5497a2e] | 172 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 173 | <phrase revision="systemd">Systemd Unit</phrase></title>
|
---|
[eedba153] | 174 |
|
---|
[b1532549] | 175 | <para revision="sysv">
|
---|
| 176 | Install the <filename>/etc/init.d/atd</filename>
|
---|
| 177 | init script from the <xref linkend="bootscripts"/> package.
|
---|
| 178 | </para>
|
---|
[d5497a2e] | 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>
|
---|
[eedba153] | 186 |
|
---|
| 187 | <indexterm zone="at at-init">
|
---|
| 188 | <primary sortas="f-at">at</primary>
|
---|
| 189 | </indexterm>
|
---|
| 190 |
|
---|
[d5497a2e] | 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>
|
---|
[eedba153] | 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>
|
---|
[42d6d3b] | 208 | <seg>
|
---|
[909a015] | 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
|
---|
[42d6d3b] | 216 | /usr/share/doc/at-&at-version;
|
---|
| 217 | </seg>
|
---|
[eedba153] | 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>
|
---|
[b1532549] | 229 | <para>
|
---|
| 230 | queues, examines or deletes jobs for later execution.
|
---|
| 231 | </para>
|
---|
[eedba153] | 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>
|
---|
[b1532549] | 241 | <para>
|
---|
| 242 | is the daemon that runs jobs queued for later execution.
|
---|
| 243 | </para>
|
---|
[eedba153] | 244 | <indexterm zone="at atd">
|
---|
| 245 | <primary sortas="b-atd">atd</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
| 249 |
|
---|
[42d6d3b] | 250 | <varlistentry id="atq">
|
---|
| 251 | <term><command>atq</command></term>
|
---|
| 252 | <listitem>
|
---|
[b1532549] | 253 | <para>
|
---|
| 254 | lists the user's pending jobs, or all jobs, if superuser.
|
---|
| 255 | </para>
|
---|
[42d6d3b] | 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>
|
---|
[b1532549] | 265 | <para>
|
---|
| 266 | deletes jobs, identified by their job number.
|
---|
| 267 | </para>
|
---|
[42d6d3b] | 268 | <indexterm zone="at atrm">
|
---|
| 269 | <primary sortas="b-atrm">atrm</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
[eedba153] | 274 | <varlistentry id="atrun">
|
---|
| 275 | <term><command>atrun</command></term>
|
---|
| 276 | <listitem>
|
---|
[b1532549] | 277 | <para>
|
---|
| 278 | runs jobs queued for later execution.
|
---|
| 279 | </para>
|
---|
[eedba153] | 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>
|
---|
[b1532549] | 289 | <para>
|
---|
| 290 | is a script that executes commands when system load levels permit.
|
---|
[eedba153] | 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>
|
---|