source: general/prog/expect.xml@ 370f305

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
Last change on this file since 370f305 was ffcbd0d, checked in by Randy McMurchy <randy@…>, 19 years ago

Added indexing tags to Expect

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

  • Property mode set to 100644
File size: 12.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY expect-download-http "http://expect.nist.gov/old/expect-&expect-version;.tar.gz">
8 <!ENTITY expect-download-ftp " ">
9 <!ENTITY expect-md5sum "fea346fac6aaf74b0851f2441f478571">
10 <!ENTITY expect-size "525 KB">
11 <!ENTITY expect-buildsize "4.8 MB">
12 <!ENTITY expect-time "0.1 SBU">
13]>
14
15<sect1 id="expect" xreflabel="Expect-&expect-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="expect.html"?>
21<title>Expect-&expect-version;</title>
22<indexterm zone="expect">
23<primary sortas="a-Expect">Expect</primary></indexterm>
24
25<sect2>
26<title>Introduction to <application>Expect</application></title>
27
28<para>The <application>Expect</application> package contains tools for
29automating interactive applications such as <command>telnet</command>,
30<command>ftp</command>, <command>passwd</command>, <command>fsck</command>,
31<command>rlogin</command>, <command>tip</command>, etc.
32<application>Expect</application> is also useful for testing these same
33applications as well as easing all sorts of tasks that are prohibitively
34difficult with anything else.</para>
35
36<sect3><title>Package information</title>
37<itemizedlist spacing="compact">
38<listitem><para>Download (HTTP):
39<ulink url="&expect-download-http;"/></para></listitem>
40<listitem><para>Download (FTP):
41<ulink url="&expect-download-ftp;"/></para></listitem>
42<listitem><para>Download MD5 Sum: &expect-md5sum;</para></listitem>
43<listitem><para>Download size: &expect-size;</para></listitem>
44<listitem><para>Estimated disk space required:
45&expect-buildsize;</para></listitem>
46<listitem><para>Estimated build time: &expect-time;</para></listitem>
47</itemizedlist>
48</sect3>
49
50<sect3><title>Additional downloads</title>
51<itemizedlist spacing="compact">
52<listitem><para>Required Patch: <ulink
53url="&patch-root;/expect-&expect-version;-spawn-1.patch"/></para>
54</listitem></itemizedlist>
55</sect3>
56
57<sect3><title><application>Expect</application> dependencies</title>
58<sect4><title>Required</title>
59<para><xref linkend="tcl"/></para>
60</sect4>
61
62<sect4><title>Optional</title>
63<para><xref linkend="tk"/></para>
64</sect4>
65</sect3>
66
67</sect2>
68
69<sect2>
70<title>Installation of <application>Expect</application></title>
71
72<para>Install <application>Expect</application> by running the following
73commands:</para>
74
75<screen><userinput><command>patch -Np1 -i ../expect-&expect-version;-spawn-1.patch &amp;&amp;
76./configure --prefix=/usr --with-tcl=/usr/lib \
77 --with-tclinclude=/usr/include/tcl8.4 --enable-shared &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;
83ln -sf ../libexpect5.42.a /usr/lib/expect5.42</command></userinput></screen>
84
85</sect2>
86
87<sect2>
88<title>Command explanations</title>
89
90<para><parameter>--enable-shared</parameter>: This option enables building the
91shared library.</para>
92
93<para><option>--with-tk=/usr/lib</option>: Use this option to link in the
94<application>Tk</application> library.</para>
95
96<para><command>ln -sf ../libexpect5.42.a /usr/lib/expect5.42</command>: This
97command creates a required link to the static library.</para>
98
99</sect2>
100
101<sect2>
102<title>Configuring <application>Expect</application></title>
103
104<sect3 id="expect-config"><title>Config files</title>
105<para><filename>$exp_library/expect.rc</filename> and
106<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>
112</sect3>
113
114<sect3><title>Configuration Information</title>
115
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
120examine the script directly for configuration file information.</para>
121</sect3>
122
123</sect2>
124
125<sect2>
126<title>Contents</title>
127
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
160non-interactive.</para>
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
329<command>expectk</command>.</para>
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
347<command>xpilot</command>.</para>
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>
364
365</sect2>
366
367</sect1>
368
Note: See TracBrowser for help on using the repository browser.