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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 9db83697 was 9db83697, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Tagged expect.xml

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

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