source: general/prog/expect.xml@ 60a31248

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 60a31248 was 22ac237, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Typo fix. General.

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

  • Property mode set to 100644
File size: 15.1 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 </sect2>
83
84 <sect2 role="installation">
85 <title>Installation of Expect</title>
86
87 <para>Install <application>Expect</application> by running the following
88 commands:</para>
89
90<screen><userinput>patch -Np1 -i ../expect-&expect-version;-spawn-2.patch &amp;&amp;
91./configure --prefix=/usr --with-tcl=/usr/lib \
92 --with-tclinclude=/usr/include/tcl8.4 --enable-shared &amp;&amp;
93make</userinput></screen>
94
95 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
96
97<screen role="root"><userinput>make install &amp;&amp;
98ln -sf ../libexpect5.43.a /usr/lib/expect5.43</userinput></screen>
99
100 </sect2>
101
102 <sect2 role="commands">
103 <title>Command Explanations</title>
104
105 <para><parameter>--enable-shared</parameter>: This option enables
106 building the shared library.</para>
107
108 <para><option>--with-tk=/usr/lib</option>: Use this option to link in the
109 <application>Tk</application> library.</para>
110
111 <para><command>ln -sf ../libexpect5.43.a /usr/lib/expect5.43</command>: This
112 command creates a required link to the static library.</para>
113
114 </sect2>
115
116 <sect2 role="configuration">
117 <title>Configuring Expect</title>
118
119 <sect3 id="expect-config">
120 <title>Config Files</title>
121
122 <para><filename>$exp_library/expect.rc</filename> and
123 <filename>~/.expect.rc</filename></para>
124
125 <indexterm zone="expect expect-config">
126 <primary sortas="e-AA.expect.rc">~/.expect.rc</primary>
127 </indexterm>
128
129 <indexterm zone="expect expect-config">
130 <primary sortas="e-Aexp_library-expect.rc">$exp_library/expect.rc</primary>
131 </indexterm>
132
133 </sect3>
134
135 <sect3>
136 <title>Configuration Information</title>
137
138 <para>Reference the <command>expect</command> man page for information about
139 utilizing the <filename>expect.rc</filename> configuration files. Additionally,
140 many of the tools contained in the <application>Expect</application> package
141 will use their own configuration files. Reference the respective man page, or
142 examine the script directly for configuration file information.</para>
143
144 </sect3>
145
146 </sect2>
147
148 <sect2 role="content">
149 <title>Contents</title>
150
151 <segmentedlist>
152 <segtitle>Installed Programs</segtitle>
153 <segtitle>Installed Library</segtitle>
154 <segtitle>Installed Directory</segtitle>
155
156 <seglistitem>
157 <seg>autoexpect, autopasswd, cryptdir, decryptdir, dislocate, expect, ftp-rfc,
158 kibitz, lpunlock, mkpasswd, passmass, rftp, rlogin-cwd, timed-read, timed-run,
159 unbuffer, weather, and optionally (if <application>Expect</application> was
160 linked against <application>Tk</application>), expectk, multixterm,
161 tknewsbiff, tkpasswd, xkibitz, and xpstat</seg>
162 <seg>libexpect5.43.[so,a]</seg>
163 <seg>/usr/lib/expect5.43</seg>
164 </seglistitem>
165 </segmentedlist>
166
167 <variablelist>
168 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
169 <?dbfo list-presentation="list"?>
170 <?dbhtml list-presentation="table"?>
171
172 <varlistentry id="autoexpect">
173 <term><command>autoexpect</command></term>
174 <listitem>
175 <para>generates an <application>Expect</application> script from
176 watching a session.</para>
177 <indexterm zone="expect autoexpect">
178 <primary sortas="b-autoexpect">autoexpect</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="autopasswd">
184 <term><command>autopasswd</command></term>
185 <listitem>
186 <para>is a wrapper to make <command>passwd</command>(1) be
187 non-interactive.</para>
188 <indexterm zone="expect autopasswd">
189 <primary sortas="b-autopasswd">autopasswd</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193
194 <varlistentry id="cryptdir">
195 <term><command>cryptdir</command></term>
196 <listitem>
197 <para>encrypts all files in a directory.</para>
198 <indexterm zone="expect cryptdir">
199 <primary sortas="b-cryptdir">cryptdir</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
204 <varlistentry id="decryptdir">
205 <term><command>decryptdir</command></term>
206 <listitem>
207 <para>decrypts all files in a directory.</para>
208 <indexterm zone="expect decryptdir">
209 <primary sortas="b-decryptdir">decryptdir</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="dislocate">
215 <term><command>dislocate</command></term>
216 <listitem>
217 <para>allows processes to be disconnected and reconnected to a
218 terminal.</para>
219 <indexterm zone="expect dislocate">
220 <primary sortas="b-dislocate">dislocate</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 <varlistentry id="expect-prog">
226 <term><command>expect</command></term>
227 <listitem>
228 <para>is a program that <quote>talks</quote> to other interactive
229 programs according to a script.</para>
230 <indexterm zone="expect expect-prog">
231 <primary sortas="b-expect">expect</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="ftp-rfc">
237 <term><command>ftp-rfc</command></term>
238 <listitem>
239 <para>retrieves an RFC (or the index) from UUNET.</para>
240 <indexterm zone="expect ftp-rfc">
241 <primary sortas="b-ftp-rfc">ftp-rfc</primary>
242 </indexterm>
243 </listitem>
244 </varlistentry>
245
246 <varlistentry id="kibitz">
247 <term><command>kibitz</command></term>
248 <listitem>
249 <para>allows two (or more) people to interact with one shell
250 (or any arbitrary program).</para>
251 <indexterm zone="expect kibitz">
252 <primary sortas="b-kibitz">kibitz</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="lpunlock">
258 <term><command>lpunlock</command></term>
259 <listitem>
260 <para>unhangs a printer which claims it is <quote>waiting for
261 lock</quote>.</para>
262 <indexterm zone="expect lpunlock">
263 <primary sortas="b-lpunlock">lpunlock</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="mkpasswd">
269 <term><command>mkpasswd</command></term>
270 <listitem>
271 <para>generates passwords and can apply them automatically to
272 users.</para>
273 <indexterm zone="expect mkpasswd">
274 <primary sortas="b-mkpasswd">mkpasswd</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="passmass">
280 <term><command>passmass</command></term>
281 <listitem>
282 <para>changes a password on multiple machines.</para>
283 <indexterm zone="expect passmass">
284 <primary sortas="b-passmass">passmass</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="rftp">
290 <term><command>rftp</command></term>
291 <listitem>
292 <para>is much like <command>ftp</command> except it uses
293 <option>~g</option> and <option>~p</option> instead of
294 <option>mget</option> and <option>mput</option>.</para>
295 <indexterm zone="expect rftp">
296 <primary sortas="b-rftp">rftp</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="rlogin-cwd">
302 <term><command>rlogin-cwd</command></term>
303 <listitem>
304 <para>is <command>rlogin</command> except it uses the local current
305 directory as the current working directory on the remote machine.</para>
306 <indexterm zone="expect rlogin-cwd">
307 <primary sortas="b-rlogin-cwd">rlogin-cwd</primary>
308 </indexterm>
309 </listitem>
310 </varlistentry>
311
312 <varlistentry id="timed-read">
313 <term><command>timed-read</command></term>
314 <listitem>
315 <para> reads a complete line from stdin and aborts after a given
316 number of seconds.</para>
317 <indexterm zone="expect timed-read">
318 <primary sortas="b-timed-read">timed-read</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="timed-run">
324 <term><command>timed-run</command></term>
325 <listitem>
326 <para>runs a program for a given amount of time.</para>
327 <indexterm zone="expect timed-run">
328 <primary sortas="b-timed-run">timed-run</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 <varlistentry id="unbuffer">
334 <term><command>unbuffer</command></term>
335 <listitem>
336 <para>disables the output buffering that occurs when program output
337 is redirected.</para>
338 <indexterm zone="expect unbuffer">
339 <primary sortas="b-unbuffer">unbuffer</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 <varlistentry id="weather">
345 <term><command>weather</command></term>
346 <listitem>
347 <para>retrieves a weather report (courtesy University of Michigan)
348 for a given city or geographical area.</para>
349 <indexterm zone="expect weather">
350 <primary sortas="b-weather">weather</primary>
351 </indexterm>
352 </listitem>
353 </varlistentry>
354
355 <varlistentry id="expectk">
356 <term><command>expectk</command></term>
357 <listitem>
358 <para>is a combination of <application>Expect</application> with
359 <application>Tk</application> and should run any <command>wish</command>
360 or <application>Expect</application> script.</para>
361 <indexterm zone="expect expectk">
362 <primary sortas="b-expectk">expectk</primary>
363 </indexterm>
364 </listitem>
365 </varlistentry>
366
367 <varlistentry id="multixterm">
368 <term><command>multixterm</command></term>
369 <listitem>
370 <para>creates multiple <command>xterm</command>s that can be driven
371 together or separately.</para>
372 <indexterm zone="expect multixterm">
373 <primary sortas="b-multixterm">multixterm</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="tknewsbiff">
379 <term><command>tknewsbiff</command></term>
380 <listitem>
381 <para>pops up a window when there is unread news in your favorite
382 newsgroups and removes the window after you've read the news.</para>
383 <indexterm zone="expect tknewsbiff">
384 <primary sortas="b-tknewsbiff">tknewsbiff</primary>
385 </indexterm>
386 </listitem>
387 </varlistentry>
388
389 <varlistentry id="tkpasswd">
390 <term><command>tkpasswd</command></term>
391 <listitem>
392 <para>is a script to change passwords using
393 <command>expectk</command>.</para>
394 <indexterm zone="expect tkpasswd">
395 <primary sortas="b-tkpasswd">tkpasswd</primary>
396 </indexterm>
397 </listitem>
398 </varlistentry>
399
400 <varlistentry id="xkibitz">
401 <term><command>xkibitz</command></term>
402 <listitem>
403 <para>allows users in separate <command>xterm</command>s to share
404 one shell (or any program that runs in an <command>xterm</command>).</para>
405 <indexterm zone="expect xkibitz">
406 <primary sortas="b-xkibitz">xkibitz</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
410
411 <varlistentry id="xpstat">
412 <term><command>xpstat</command></term>
413 <listitem>
414 <para>is a script that acts as a front-end for <command>xpilot</command>.</para>
415 <indexterm zone="expect xpstat">
416 <primary sortas="b-xpstat">xpstat</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420
421 <varlistentry id="libexpect">
422 <term><filename class='libraryfile'>libexpect5.43.[so,a]</filename></term>
423 <listitem>
424 <para> contains functions that allow <application>Expect</application> to be
425 used as a <application>Tcl</application> extension or to be used directly from
426 C or C++ (without <application>Tcl</application>).</para>
427 <indexterm zone="expect libexpect">
428 <primary sortas="c-libexpect5.43">libexpect5.43.[so,a]</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
433 </variablelist>
434
435 </sect2>
436
437</sect1>
438
Note: See TracBrowser for help on using the repository browser.