Changeset ffcbd0d


Ignore:
Timestamp:
01/29/2005 11:52:50 PM (19 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
370f305
Parents:
233a4f43
Message:

Added indexing tags to Expect

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3361 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/expect.xml

    r233a4f43 rffcbd0d  
    2020<?dbhtml filename="expect.html"?>
    2121<title>Expect-&expect-version;</title>
     22<indexterm zone="expect">
     23<primary sortas="a-Expect">Expect</primary></indexterm>
    2224
    2325<sect2>
     
    5456
    5557<sect3><title><application>Expect</application> dependencies</title>
    56 
    5758<sect4><title>Required</title>
    5859<para><xref linkend="tcl"/></para>
     
    7576./configure --prefix=/usr --with-tcl=/usr/lib \
    7677    --with-tclinclude=/usr/include/tcl8.4 --enable-shared &amp;&amp;
    77 make &amp;&amp;
    78 make install &amp;&amp;
     78make</command></userinput></screen>
     79
     80<para>Now, as the root user:</para>
     81
     82<screen><userinput role='root'><command>make install &amp;&amp;
    7983ln -sf ../libexpect5.42.a /usr/lib/expect5.42</command></userinput></screen>
    8084
     
    98102<title>Configuring <application>Expect</application></title>
    99103
    100 <sect3><title>Config files</title>
     104<sect3 id="expect-config"><title>Config files</title>
    101105<para><filename>$exp_library/expect.rc</filename> and
    102106<filename>~/.expect.rc</filename></para>
     107<indexterm zone="expect expect-config">
     108<primary sortas="e-AA.expect.rc">~/.expect.rc</primary></indexterm>
     109<indexterm zone="expect expect-config">
     110<primary sortas="e-Aexp_library-expect.rc">$exp_library/expect.rc</primary>
     111</indexterm>
    103112</sect3>
    104113
    105114<sect3><title>Configuration Information</title>
    106115
    107 <para>Reference the <command>expect</command> man page for information about
    108 utilizing the <filename>expect.rc</filename> configuration files. Additionally,
    109 many of the tools contained in the <application>Expect</application> package
    110 will use their own configuration files. Reference the respective man page, or
     116<para>Reference the <command>expect</command> man page for information about 
     117utilizing the <filename>expect.rc</filename> configuration files. Additionally, 
     118many of the tools contained in the <application>Expect</application> package 
     119will use their own configuration files. Reference the respective man page, or 
    111120examine the script directly for configuration file information.</para>
    112121</sect3>
     
    117126<title>Contents</title>
    118127
    119 <para>The <application>Expect</application> package contains the
    120 <filename class='libraryfile'>libexpect</filename> libraries,
    121 <command>autoexpect</command>,
    122 <command>autopasswd</command>,
    123 <command>cryptdir</command>,
    124 <command>decryptdir</command>,
    125 <command>dislocate</command>,
    126 <command>expect</command>,
    127 <command>ftp-rfc</command>,
    128 <command>kibitz</command>,
    129 <command>lpunlock</command>,
    130 <command>mkpasswd</command>,
    131 <command>passmass</command>,
    132 <command>rftp</command>,
    133 <command>rlogin-cwd</command>,
    134 <command>timed-read</command>,
    135 <command>timed-run</command>,
    136 <command>unbuffer</command>,
    137 <command>weather</command> and optionally
    138 (if <application>expect</application> was linked against
    139 <application>Tk</application>),
    140 <command>expectk</command>,
    141 <command>multixterm</command>,
    142 <command>tknewsbiff</command>,
    143 <command>tkpasswd</command>,
    144 <command>xkibitz</command> and
    145 <command>xpstat</command>.</para>
    146 
    147 </sect2>
    148 
    149 <sect2><title>Description</title>
    150 
    151 <sect3><title>autoexpect</title>
    152 <para><command>autoexpect</command> generates an
    153 <application>Expect</application> script from watching a session.</para>
    154 </sect3>
    155 
    156 <sect3><title>autopasswd</title>
    157 <para><command>autopasswd</command> is a wrapper to make passwd(1) be
     128<segmentedlist>
     129<segtitle>Installed Programs</segtitle>
     130<segtitle>Installed Library</segtitle>
     131<segtitle>Installed Directory</segtitle>
     132
     133<seglistitem>
     134<seg>autoexpect, autopasswd, cryptdir, decryptdir, dislocate, expect, ftp-rfc,
     135kibitz, lpunlock, mkpasswd, passmass, rftp, rlogin-cwd, timed-read, timed-run,
     136unbuffer, weather and optionally (if <application>expect</application> was
     137linked against <application>Tk</application>), expectk, multixterm,
     138tknewsbiff, tkpasswd, xkibitz and xpstat</seg>
     139<seg>libexpect5.42.[so,a]</seg>
     140<seg>/usr/lib/expect5.42</seg>
     141</seglistitem>
     142</segmentedlist>
     143
     144<variablelist>
     145<bridgehead renderas="sect3">Short Descriptions</bridgehead>
     146<?dbfo list-presentation="list"?>
     147
     148<varlistentry id="autoexpect">
     149<term><command>autoexpect</command></term>
     150<listitem><para>generates an <application>Expect</application> script from
     151watching a session.</para>
     152<indexterm zone="expect autoexpect">
     153<primary sortas="b-autoexpect">autoexpect</primary>
     154</indexterm></listitem>
     155</varlistentry>
     156
     157<varlistentry id="autopasswd">
     158<term><command>autopasswd</command></term>
     159<listitem><para>is a wrapper to make <command>passwd</command>(1) be
    158160non-interactive.</para>
    159 </sect3>
    160 
    161 <sect3><title>cryptdir</title>
    162 <para><command>cryptdir</command> encrypts all files in a directory.</para>
    163 </sect3>
    164 
    165 <sect3><title>decryptdir</title>
    166 <para><command>decryptdir</command> decrypts all files in a directory.</para>
    167 </sect3>
    168 
    169 <sect3><title>dislocate</title>
    170 <para><command>dislocate</command> allows processes to be disconnected and
    171 reconnected to a terminal.</para>
    172 </sect3>
    173 
    174 <sect3><title>expect</title>
    175 <para><command>expect</command> is a program that <quote>talks</quote> to
    176 other interactive programs according to a script.</para>
    177 </sect3>
    178 
    179 <sect3><title>ftp-rfc</title>
    180 <para><command>ftp-rfc</command> retrieves an rfc (or the index) from
    181 uunet.</para>
    182 </sect3>
    183 
    184 <sect3><title>kibitz</title>
    185 <para><command>kibitz</command> allows two (or more) people to interact with
    186 one shell (or any arbitrary program).</para>
    187 </sect3>
    188 
    189 <sect3><title>lpunlock</title>
    190 <para><command>lpunlock</command> unhangs a printer which claims it is
    191 <quote>waiting for lock</quote>.</para>
    192 </sect3>
    193 
    194 <sect3><title>mkpasswd</title>
    195 <para><command>mkpasswd</command> generates passwords and can apply them
    196 automatically to users.</para>
    197 </sect3>
    198 
    199 <sect3><title>passmass</title>
    200 <para><command>passmass</command> changes a password on multiple
    201 machines.</para>
    202 </sect3>
    203 
    204 <sect3><title>rftp</title>
    205 <para><command>rftp</command> is much like <command>ftp</command> except
    206 it uses '~g' and '~p' instead of 'mget' and 'mput'.</para>
    207 </sect3>
    208 
    209 <sect3><title>rlogin-cwd</title>
    210 <para><command>rlogin-cwd</command> is <command>rlogin</command> except
    211 it uses the local current directory as the current working directory on the
    212 remote machine.</para>
    213 </sect3>
    214 
    215 <sect3><title>timed-read</title>
    216 <para><command>timed-read</command> reads a complete line from stdin
    217 and aborts after a given number of seconds.</para>
    218 </sect3>
    219 
    220 <sect3><title>timed-run</title>
    221 <para><command>timed-run</command> runs a program for a given amount of
    222 time.</para>
    223 </sect3>
    224 
    225 <sect3><title>unbuffer</title>
    226 <para><command>unbuffer</command> disables the output buffering that occurs
    227 when program output is redirected.</para>
    228 </sect3>
    229 
    230 <sect3><title>weather</title>
    231 <para><command>weather</command> retrieves a weather report (courtesy
    232 University of Michigan) for a given city or geographical area.</para>
    233 </sect3>
    234 
    235 <sect3><title>expectk</title>
    236 <para><command>expectk</command> is a combination of
    237 <application>Expect</application> with <application>Tk</application> and should
    238 run any <command>wish</command> or <application>Expect</application>
    239 script.</para>
    240 </sect3>
    241 
    242 <sect3><title>multixterm</title>
    243 <para><command>multixterm</command> creates multiple <command>xterm</command>s
    244 that can be driven together or separately.</para>
    245 </sect3>
    246 
    247 <sect3><title>tknewsbiff</title>
    248 <para><command>tknewsbiff</command> pops up a window when there is unread news
    249 in your favorite newsgroups and removes the window after you've read the
    250 news.</para>
    251 </sect3>
    252 
    253 <sect3><title>tkpasswd</title>
    254 <para><command>tkpasswd</command> is a script to change passwords using
     161<indexterm zone="expect autopasswd">
     162<primary sortas="b-autopasswd">autopasswd</primary>
     163</indexterm></listitem>
     164</varlistentry>
     165
     166<varlistentry id="cryptdir">
     167<term><command>cryptdir</command></term>
     168<listitem><para>encrypts all files in a directory.</para>
     169<indexterm zone="expect cryptdir">
     170<primary sortas="b-cryptdir">cryptdir</primary>
     171</indexterm></listitem>
     172</varlistentry>
     173
     174<varlistentry id="decryptdir">
     175<term><command>decryptdir</command></term>
     176<listitem><para>decrypts all files in a directory.</para>
     177<indexterm zone="expect decryptdir">
     178<primary sortas="b-decryptdir">decryptdir</primary>
     179</indexterm></listitem>
     180</varlistentry>
     181
     182<varlistentry id="dislocate">
     183<term><command>dislocate</command></term>
     184<listitem><para>allows processes to be disconnected and reconnected to a
     185terminal.</para>
     186<indexterm zone="expect dislocate">
     187<primary sortas="b-dislocate">dislocate</primary>
     188</indexterm></listitem>
     189</varlistentry>
     190
     191<varlistentry id="expect-prog">
     192<term><command>expect</command></term>
     193<listitem><para>is a program that <quote>talks</quote> to other interactive
     194programs according to a script.</para>
     195<indexterm zone="expect expect-prog">
     196<primary sortas="b-expect">expect</primary>
     197</indexterm></listitem>
     198</varlistentry>
     199
     200<varlistentry id="ftp-rfc">
     201<term><command>ftp-rfc</command></term>
     202<listitem><para>retrieves an <acronym>RFC</acronym> (or the index) from
     203<acronym>UUNET</acronym>.</para>
     204<indexterm zone="expect ftp-rfc">
     205<primary sortas="b-ftp-rfc">ftp-rfc</primary>
     206</indexterm></listitem>
     207</varlistentry>
     208
     209<varlistentry id="kibitz">
     210<term><command>kibitz</command></term>
     211<listitem><para>allows two (or more) people to interact with one shell
     212(or any arbitrary program).</para>
     213<indexterm zone="expect kibitz">
     214<primary sortas="b-kibitz">kibitz</primary>
     215</indexterm></listitem>
     216</varlistentry>
     217
     218<varlistentry id="lpunlock">
     219<term><command>lpunlock</command></term>
     220<listitem><para>unhangs a printer which claims it is <quote>waiting for
     221lock</quote>.</para>
     222<indexterm zone="expect lpunlock">
     223<primary sortas="b-lpunlock">lpunlock</primary>
     224</indexterm></listitem>
     225</varlistentry>
     226
     227<varlistentry id="mkpasswd">
     228<term><command>mkpasswd</command></term>
     229<listitem><para>generates passwords and can apply them automatically to
     230users.</para>
     231<indexterm zone="expect mkpasswd">
     232<primary sortas="b-mkpasswd">mkpasswd</primary>
     233</indexterm></listitem>
     234</varlistentry>
     235
     236<varlistentry id="passmass">
     237<term><command>passmass</command></term>
     238<listitem><para>changes a password on multiple machines.</para>
     239<indexterm zone="expect passmass">
     240<primary sortas="b-passmass">passmass</primary>
     241</indexterm></listitem>
     242</varlistentry>
     243
     244<varlistentry id="rftp">
     245<term><command>rftp</command></term>
     246<listitem><para>is much like <command>ftp</command> except
     247it uses <userinput>~g</userinput> and <userinput>~p</userinput> instead of
     248<userinput>mget</userinput> and <userinput>mput</userinput>.</para>
     249<indexterm zone="expect rftp">
     250<primary sortas="b-rftp">rftp</primary>
     251</indexterm></listitem>
     252</varlistentry>
     253
     254<varlistentry id="rlogin-cwd">
     255<term><command>rlogin-cwd</command></term>
     256<listitem><para>is <command>rlogin</command> except it uses the local current
     257directory as the current working directory on the remote machine.</para>
     258<indexterm zone="expect rlogin-cwd">
     259<primary sortas="b-rlogin-cwd">rlogin-cwd</primary>
     260</indexterm></listitem>
     261</varlistentry>
     262
     263<varlistentry id="timed-read">
     264<term><command>timed-read</command></term>
     265<listitem><para> reads a complete line from stdin and aborts after a given
     266number of seconds.</para>
     267<indexterm zone="expect timed-read">
     268<primary sortas="b-timed-read">timed-read</primary>
     269</indexterm></listitem>
     270</varlistentry>
     271
     272<varlistentry id="timed-run">
     273<term><command>timed-run</command></term>
     274<listitem><para>runs a program for a given amount of time.</para>
     275<indexterm zone="expect timed-run">
     276<primary sortas="b-timed-run">timed-run</primary>
     277</indexterm></listitem>
     278</varlistentry>
     279
     280<varlistentry id="unbuffer">
     281<term><command>unbuffer</command></term>
     282<listitem><para>disables the output buffering that occurs when program output
     283is redirected.</para>
     284<indexterm zone="expect unbuffer">
     285<primary sortas="b-unbuffer">unbuffer</primary>
     286</indexterm></listitem>
     287</varlistentry>
     288
     289<varlistentry id="weather">
     290<term><command>weather</command></term>
     291<listitem><para>retrieves a weather report (courtesy University of Michigan)
     292for a given city or geographical area.</para>
     293<indexterm zone="expect weather">
     294<primary sortas="b-weather">weather</primary>
     295</indexterm></listitem>
     296</varlistentry>
     297
     298<varlistentry id="expectk">
     299<term><command>expectk</command></term>
     300<listitem><para>is a combination of <application>Expect</application> with
     301<application>Tk</application> and should run any <command>wish</command> or
     302<application>Expect</application> script.</para>
     303<indexterm zone="expect expectk">
     304<primary sortas="b-expectk">expectk</primary>
     305</indexterm></listitem>
     306</varlistentry>
     307
     308<varlistentry id="multixterm">
     309<term><command>multixterm</command></term>
     310<listitem><para>creates multiple <command>xterm</command>s that can be driven
     311together or separately.</para>
     312<indexterm zone="expect multixterm">
     313<primary sortas="b-multixterm">multixterm</primary>
     314</indexterm></listitem>
     315</varlistentry>
     316
     317<varlistentry id="tknewsbiff">
     318<term><command>tknewsbiff</command></term>
     319<listitem><para>pops up a window when there is unread news in your favorite
     320newsgroups and removes the window after you've read the news.</para>
     321<indexterm zone="expect tknewsbiff">
     322<primary sortas="b-tknewsbiff">tknewsbiff</primary>
     323</indexterm></listitem>
     324</varlistentry>
     325
     326<varlistentry id="tkpasswd">
     327<term><command>tkpasswd</command></term>
     328<listitem><para>is a script to change passwords using
    255329<command>expectk</command>.</para>
    256 </sect3>
    257 
    258 <sect3><title>xkibitz</title>
    259 <para><command>xkibitz</command> allows users in separate
    260 <command>xterm</command>s to share one shell (or any program that runs in an
    261 <command>xterm</command>).</para>
    262 </sect3>
    263 
    264 <sect3><title>xpstat</title>
    265 <para><command>xpstat</command> is a script that acts as a front-end for
     330<indexterm zone="expect tkpasswd">
     331<primary sortas="b-tkpasswd">tkpasswd</primary>
     332</indexterm></listitem>
     333</varlistentry>
     334
     335<varlistentry id="xkibitz">
     336<term><command>xkibitz</command></term>
     337<listitem><para>allows users in separate <command>xterm</command>s to share
     338one shell (or any program that runs in an <command>xterm</command>).</para>
     339<indexterm zone="expect xkibitz">
     340<primary sortas="b-xkibitz">xkibitz</primary>
     341</indexterm></listitem>
     342</varlistentry>
     343
     344<varlistentry id="xpstat">
     345<term><command>xpstat</command></term>
     346<listitem><para>is a script that acts as a front-end for
    266347<command>xpilot</command>.</para>
    267 </sect3>
     348<indexterm zone="expect xpstat">
     349<primary sortas="b-xpstat">xpstat</primary>
     350</indexterm></listitem>
     351</varlistentry>
     352
     353<varlistentry id="libexpect">
     354<term><filename class='libraryfile'>libexpect5.42.[so,a]</filename></term>
     355<listitem><para> contains functions that allow
     356<application>Expect</application> to be used as a
     357<application>Tcl</application> extension or to be used directly from C or
     358C++ (without <application>Tcl</application>).</para>
     359<indexterm zone="expect libexpect">
     360<primary sortas="c-libexpect5.42">libexpect5.42.[so,a]</primary>
     361</indexterm></listitem>
     362</varlistentry>
     363</variablelist>
    268364
    269365</sect2>
Note: See TracChangeset for help on using the changeset viewer.