expect.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. <sect1 id="ch-tools-expect" role="wrap">
  8. <?dbhtml filename="expect.html"?>
  9. <sect1info condition="script">
  10. <productname>expect</productname>
  11. <productnumber>&expect-version;</productnumber>
  12. <address>&expect-url;</address>
  13. </sect1info>
  14. <title>Expect-&expect-version;</title>
  15. <indexterm zone="ch-tools-expect">
  16. <primary sortas="a-Expect">Expect</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The <application>Expect</application> package contains tools for
  21. automating, via scripted dialogues, interactive applications such as
  22. <command>telnet</command>, <command>ftp</command>,
  23. <command>passwd</command>, <command>fsck</command>,
  24. <command>rlogin</command>, and <command>tip</command>.
  25. <application>Expect</application> is also useful for testing these same
  26. applications as well as easing all sorts of tasks that are prohibitively
  27. difficult with anything else. The <application>DejaGnu</application>
  28. framework is written in <application>Expect</application>.</para>
  29. <segmentedlist>
  30. <segtitle>&buildtime;</segtitle>
  31. <segtitle>&diskspace;</segtitle>
  32. <seglistitem>
  33. <seg>&expect-ch5-sbu;</seg>
  34. <seg>&expect-ch5-du;</seg>
  35. </seglistitem>
  36. </segmentedlist>
  37. </sect2>
  38. <sect2 role="installation">
  39. <title>Installation of Expect</title>
  40. <para>Prepare Expect for compilation:</para>
  41. <screen><userinput remap="configure">
  42. ./configure --prefix=/usr \
  43. --with-tcl=/usr/lib \
  44. --enable-shared \
  45. --mandir=/usr/share/man \
  46. --with-tclinclude=/usr/include</userinput></screen>
  47. <variablelist>
  48. <title>The meaning of the configure options:</title>
  49. <varlistentry>
  50. <term><parameter>--with-tcl=/usr/lib</parameter></term>
  51. <listitem>
  52. <para>This parameter is needed to tell the
  53. <command>configure</command> where the
  54. <command>tclConfig.sh</command> is located.</para>
  55. </listitem>
  56. </varlistentry>
  57. <varlistentry>
  58. <term><parameter>--with-tclinclude=/usr/include</parameter></term>
  59. <listitem>
  60. <para>This explicitly tells Expect where to find Tcl's internal
  61. headers. Using this option avoids conditions where
  62. <command>configure</command> fails because it cannot automatically
  63. discover the location of Tcl's headers.</para>
  64. </listitem>
  65. </varlistentry>
  66. </variablelist>
  67. <para>Build the package:</para>
  68. <screen><userinput remap="make">make</userinput></screen>
  69. <para>Install the package:</para>
  70. <screen><userinput remap="install">make install
  71. ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib</userinput></screen>
  72. </sect2>
  73. <sect2 id="contents-expect" role="content">
  74. <title>Contents of Expect</title>
  75. <segmentedlist>
  76. <segtitle>Installed program</segtitle>
  77. <segtitle>Installed library</segtitle>
  78. <seglistitem>
  79. <seg>expect</seg>
  80. <seg>libexpect-&expect-lib-version;.so</seg>
  81. </seglistitem>
  82. </segmentedlist>
  83. <variablelist>
  84. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  85. <?dbfo list-presentation="list"?>
  86. <?dbhtml list-presentation="table"?>
  87. <varlistentry id="expect">
  88. <term><command>expect</command></term>
  89. <listitem>
  90. <para>Communicates with other interactive programs according
  91. to a script</para>
  92. <indexterm zone="ch-tools-expect expect">
  93. <primary sortas="b-expect">expect</primary>
  94. </indexterm>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry id="libexpect">
  98. <term><filename class="libraryfile">libexpect-&expect-lib-version;.so</filename></term>
  99. <listitem>
  100. <para>Contains functions that allow Expect to be used as a Tcl
  101. extension or to be used directly from C or C++ (without Tcl)</para>
  102. <indexterm zone="ch-tools-expect libexpect">
  103. <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
  104. </indexterm>
  105. </listitem>
  106. </varlistentry>
  107. </variablelist>
  108. </sect2>
  109. </sect1>