source: general/prog/expect.xml@ 1039de3

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 1039de3 was 1039de3, checked in by Randy McMurchy <randy@…>, 18 years ago

Added the 'User Notes' wiki link to each package page; changed all instances of .[so,a] to .{so,a} (brackets changed to braces); changed all replaceable tags to use angle brackets instead of square brackets to encapsulate the text - commit #3

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

  • Property mode set to 100644
File size: 15.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 "230400129630335b3060a42f66fec11d">
10 <!ENTITY expect-size "525 KB">
11 <!ENTITY expect-buildsize "4.6 MB">
12 <!ENTITY expect-time "0.07 SBU">
13]>
14
15<sect1 id="expect" xreflabel="Expect-&expect-version;">
16 <?dbhtml filename="expect.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 <keywordset>
22 <keyword role="package">expect-&expect-version;.tar</keyword>
23 <keyword role="ftpdir">expect</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>Expect-&expect-version;</title>
28
29 <indexterm zone="expect">
30 <primary sortas="a-Expect">Expect</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Expect</title>
35
36 <para>The <application>Expect</application> package contains tools for
37 automating interactive applications such as <command>telnet</command>,
38 <command>ftp</command>, <command>passwd</command>,
39 <command>fsck</command>, <command>rlogin</command>,
40 <command>tip</command>, etc. <application>Expect</application> is
41 also useful for testing these same applications as well as easing all sorts of
42 tasks that are prohibitively difficult with anything else.</para>
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>Download (HTTP): <ulink url="&expect-download-http;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download (FTP): <ulink url="&expect-download-ftp;"/></para>
51 </listitem>
52 <listitem>
53 <para>Download MD5 sum: &expect-md5sum;</para>
54 </listitem>
55 <listitem>
56 <para>Download size: &expect-size;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated disk space required: &expect-buildsize;</para>
60 </listitem>
61 <listitem>
62 <para>Estimated build time: &expect-time;</para>
63 </listitem>
64 </itemizedlist>
65
66 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
67 <itemizedlist spacing="compact">
68 <listitem>
69 <para>Required Patch: <ulink
70 url="&patch-root;/expect-&expect-version;-spawn-2.patch"/></para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Expect Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required"><xref linkend="tcl"/></para>
78
79 <bridgehead renderas="sect4">Optional</bridgehead>
80 <para role="optional"><xref linkend="tk"/></para>
81
82 <para condition="html" role="usernotes">User Notes:
83 <ulink url="&blfs-wiki;/expect"/></para>
84
85 </sect2>
86
87 <sect2 role="installation">
88 <title>Installation of Expect</title>
89
90 <para>Install <application>Expect</application> by running the following
91 commands:</para>
92
93<screen><userinput>patch -Np1 -i ../expect-&expect-version;-spawn-2.patch &amp;&amp;
94./configure --prefix=/usr --with-tcl=/usr/lib \
95 --with-tclinclude=/usr/include/tcl8.4 --enable-shared &amp;&amp;
96make</userinput></screen>
97
98 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
99
100<screen role="root"><userinput>make install &amp;&amp;
101ln -sf ../libexpect5.43.a /usr/lib/expect5.43</userinput></screen>
102
103 </sect2>
104
105 <sect2 role="commands">
106 <title>Command Explanations</title>
107
108 <para><parameter>--enable-shared</parameter>: This option enables
109 building the shared library.</para>
110
111 <para><option>--with-tk=/usr/lib</option>: Use this option to link in the
112 <application>Tk</application> library.</para>
113
114 <para><command>ln -sf ../libexpect5.43.a /usr/lib/expect5.43</command>: This
115 command creates a required link to the static library.</para>
116
117 </sect2>
118
119 <sect2 role="configuration">
120 <title>Configuring Expect</title>
121
122 <sect3 id="expect-config">
123 <title>Config Files</title>
124
125 <para><filename>$exp_library/expect.rc</filename> and
126 <filename>~/.expect.rc</filename></para>
127
128 <indexterm zone="expect expect-config">
129 <primary sortas="e-AA.expect.rc">~/.expect.rc</primary>
130 </indexterm>
131
132 <indexterm zone="expect expect-config">
133 <primary sortas="e-Aexp_library-expect.rc">$exp_library/expect.rc</primary>
134 </indexterm>
135
136 </sect3>
137
138 <sect3>
139 <title>Configuration Information</title>
140
141 <para>Reference the <command>expect</command> man page for information about
142 utilizing the <filename>expect.rc</filename> configuration files. Additionally,
143 many of the tools contained in the <application>Expect</application> package
144 will use their own configuration files. Reference the respective man page, or
145 examine the script directly for configuration file information.</para>
146
147 </sect3>
148
149 </sect2>
150
151 <sect2 role="content">
152 <title>Contents</title>
153
154 <segmentedlist>
155 <segtitle>Installed Programs</segtitle>
156 <segtitle>Installed Library</segtitle>
157 <segtitle>Installed Directory</segtitle>
158
159 <seglistitem>
160 <seg>autoexpect, autopasswd, cryptdir, decryptdir, dislocate, expect, ftp-rfc,
161 kibitz, lpunlock, mkpasswd, passmass, rftp, rlogin-cwd, timed-read, timed-run,
162 unbuffer, weather, and optionally (if <application>Expect</application> was
163 linked against <application>Tk</application>), expectk, multixterm,
164 tknewsbiff, tkpasswd, xkibitz, and xpstat</seg>
165 <seg>libexpect5.43.{so,a}</seg>
166 <seg>/usr/lib/expect5.43</seg>
167 </seglistitem>
168 </segmentedlist>
169
170 <variablelist>
171 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
172 <?dbfo list-presentation="list"?>
173 <?dbhtml list-presentation="table"?>
174
175 <varlistentry id="autoexpect">
176 <term><command>autoexpect</command></term>
177 <listitem>
178 <para>generates an <application>Expect</application> script from
179 watching a session.</para>
180 <indexterm zone="expect autoexpect">
181 <primary sortas="b-autoexpect">autoexpect</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="autopasswd">
187 <term><command>autopasswd</command></term>
188 <listitem>
189 <para>is a wrapper to make <command>passwd</command>(1) be
190 non-interactive.</para>
191 <indexterm zone="expect autopasswd">
192 <primary sortas="b-autopasswd">autopasswd</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 <varlistentry id="cryptdir">
198 <term><command>cryptdir</command></term>
199 <listitem>
200 <para>encrypts all files in a directory.</para>
201 <indexterm zone="expect cryptdir">
202 <primary sortas="b-cryptdir">cryptdir</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="decryptdir">
208 <term><command>decryptdir</command></term>
209 <listitem>
210 <para>decrypts all files in a directory.</para>
211 <indexterm zone="expect decryptdir">
212 <primary sortas="b-decryptdir">decryptdir</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="dislocate">
218 <term><command>dislocate</command></term>
219 <listitem>
220 <para>allows processes to be disconnected and reconnected to a
221 terminal.</para>
222 <indexterm zone="expect dislocate">
223 <primary sortas="b-dislocate">dislocate</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="expect-prog">
229 <term><command>expect</command></term>
230 <listitem>
231 <para>is a program that <quote>talks</quote> to other interactive
232 programs according to a script.</para>
233 <indexterm zone="expect expect-prog">
234 <primary sortas="b-expect">expect</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="ftp-rfc">
240 <term><command>ftp-rfc</command></term>
241 <listitem>
242 <para>retrieves an RFC (or the index) from UUNET.</para>
243 <indexterm zone="expect ftp-rfc">
244 <primary sortas="b-ftp-rfc">ftp-rfc</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
249 <varlistentry id="kibitz">
250 <term><command>kibitz</command></term>
251 <listitem>
252 <para>allows two (or more) people to interact with one shell
253 (or any arbitrary program).</para>
254 <indexterm zone="expect kibitz">
255 <primary sortas="b-kibitz">kibitz</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="lpunlock">
261 <term><command>lpunlock</command></term>
262 <listitem>
263 <para>unhangs a printer which claims it is <quote>waiting for
264 lock</quote>.</para>
265 <indexterm zone="expect lpunlock">
266 <primary sortas="b-lpunlock">lpunlock</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="mkpasswd">
272 <term><command>mkpasswd</command></term>
273 <listitem>
274 <para>generates passwords and can apply them automatically to
275 users.</para>
276 <indexterm zone="expect mkpasswd">
277 <primary sortas="b-mkpasswd">mkpasswd</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="passmass">
283 <term><command>passmass</command></term>
284 <listitem>
285 <para>changes a password on multiple machines.</para>
286 <indexterm zone="expect passmass">
287 <primary sortas="b-passmass">passmass</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="rftp">
293 <term><command>rftp</command></term>
294 <listitem>
295 <para>is much like <command>ftp</command> except it uses
296 <option>~g</option> and <option>~p</option> instead of
297 <option>mget</option> and <option>mput</option>.</para>
298 <indexterm zone="expect rftp">
299 <primary sortas="b-rftp">rftp</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="rlogin-cwd">
305 <term><command>rlogin-cwd</command></term>
306 <listitem>
307 <para>is <command>rlogin</command> except it uses the local current
308 directory as the current working directory on the remote machine.</para>
309 <indexterm zone="expect rlogin-cwd">
310 <primary sortas="b-rlogin-cwd">rlogin-cwd</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 <varlistentry id="timed-read">
316 <term><command>timed-read</command></term>
317 <listitem>
318 <para> reads a complete line from stdin and aborts after a given
319 number of seconds.</para>
320 <indexterm zone="expect timed-read">
321 <primary sortas="b-timed-read">timed-read</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 <varlistentry id="timed-run">
327 <term><command>timed-run</command></term>
328 <listitem>
329 <para>runs a program for a given amount of time.</para>
330 <indexterm zone="expect timed-run">
331 <primary sortas="b-timed-run">timed-run</primary>
332 </indexterm>
333 </listitem>
334 </varlistentry>
335
336 <varlistentry id="unbuffer">
337 <term><command>unbuffer</command></term>
338 <listitem>
339 <para>disables the output buffering that occurs when program output
340 is redirected.</para>
341 <indexterm zone="expect unbuffer">
342 <primary sortas="b-unbuffer">unbuffer</primary>
343 </indexterm>
344 </listitem>
345 </varlistentry>
346
347 <varlistentry id="weather">
348 <term><command>weather</command></term>
349 <listitem>
350 <para>retrieves a weather report (courtesy University of Michigan)
351 for a given city or geographical area.</para>
352 <indexterm zone="expect weather">
353 <primary sortas="b-weather">weather</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
358 <varlistentry id="expectk">
359 <term><command>expectk</command></term>
360 <listitem>
361 <para>is a combination of <application>Expect</application> with
362 <application>Tk</application> and should run any <command>wish</command>
363 or <application>Expect</application> script.</para>
364 <indexterm zone="expect expectk">
365 <primary sortas="b-expectk">expectk</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
370 <varlistentry id="multixterm">
371 <term><command>multixterm</command></term>
372 <listitem>
373 <para>creates multiple <command>xterm</command>s that can be driven
374 together or separately.</para>
375 <indexterm zone="expect multixterm">
376 <primary sortas="b-multixterm">multixterm</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
381 <varlistentry id="tknewsbiff">
382 <term><command>tknewsbiff</command></term>
383 <listitem>
384 <para>pops up a window when there is unread news in your favorite
385 newsgroups and removes the window after you've read the news.</para>
386 <indexterm zone="expect tknewsbiff">
387 <primary sortas="b-tknewsbiff">tknewsbiff</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="tkpasswd">
393 <term><command>tkpasswd</command></term>
394 <listitem>
395 <para>is a script to change passwords using
396 <command>expectk</command>.</para>
397 <indexterm zone="expect tkpasswd">
398 <primary sortas="b-tkpasswd">tkpasswd</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
403 <varlistentry id="xkibitz">
404 <term><command>xkibitz</command></term>
405 <listitem>
406 <para>allows users in separate <command>xterm</command>s to share
407 one shell (or any program that runs in an <command>xterm</command>).</para>
408 <indexterm zone="expect xkibitz">
409 <primary sortas="b-xkibitz">xkibitz</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 <varlistentry id="xpstat">
415 <term><command>xpstat</command></term>
416 <listitem>
417 <para>is a script that acts as a front-end for <command>xpilot</command>.</para>
418 <indexterm zone="expect xpstat">
419 <primary sortas="b-xpstat">xpstat</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>
423
424 <varlistentry id="libexpect">
425 <term><filename class='libraryfile'>libexpect5.43.{so,a}</filename></term>
426 <listitem>
427 <para> contains functions that allow <application>Expect</application> to be
428 used as a <application>Tcl</application> extension or to be used directly from
429 C or C++ (without <application>Tcl</application>).</para>
430 <indexterm zone="expect libexpect">
431 <primary sortas="c-libexpect5.43">libexpect5.43.{so,a}</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
436 </variablelist>
437
438 </sect2>
439
440</sect1>
441
Note: See TracBrowser for help on using the repository browser.