source: general/prog/expect.xml@ 9f12e36

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 9f12e36 was 9f12e36, checked in by Randy McMurchy <randy@…>, 18 years ago

Removed 'keywordset' blocks and extra spaces from the XML files (note this was by accident as I meant to do just in the gnome directory but I was in the root of BOOK when I ran the script, but this was going to happen anyway so I don't think it is a big deal)

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