source: general/prog/expect.xml@ 7ba8507

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 7ba8507 was 7ba8507, checked in by Randy McMurchy <randy@…>, 13 years ago

Updated the download URLs for the Recode and Expect packages

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

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