expect.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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-tmp-sbu;</seg>
  34. <seg>&expect-tmp-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">./configure --prefix=/usr \
  42. --with-tcl=/usr/lib \
  43. --enable-shared \
  44. --mandir=/usr/share/man \
  45. --with-tclinclude=/usr/include</userinput></screen>
  46. <variablelist>
  47. <title>The meaning of the configure options:</title>
  48. <varlistentry>
  49. <term><parameter>--with-tcl=/usr/lib</parameter></term>
  50. <listitem>
  51. <para>This parameter is needed to tell
  52. <command>configure</command> where the
  53. <command>tclConfig.sh</command> script is located.</para>
  54. </listitem>
  55. </varlistentry>
  56. <varlistentry>
  57. <term><parameter>--with-tclinclude=/usr/include</parameter></term>
  58. <listitem>
  59. <para>This explicitly tells Expect where to find Tcl's internal
  60. headers.</para>
  61. </listitem>
  62. </varlistentry>
  63. </variablelist>
  64. <para>Build the package:</para>
  65. <screen><userinput remap="make">make</userinput></screen>
  66. <para>Install the package:</para>
  67. <screen><userinput remap="install">make install
  68. ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib</userinput></screen>
  69. </sect2>
  70. <sect2 id="contents-expect" role="content">
  71. <title>Contents of Expect</title>
  72. <segmentedlist>
  73. <segtitle>Installed program</segtitle>
  74. <segtitle>Installed library</segtitle>
  75. <seglistitem>
  76. <seg>expect</seg>
  77. <seg>libexpect-&expect-lib-version;.so</seg>
  78. </seglistitem>
  79. </segmentedlist>
  80. <variablelist>
  81. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  82. <?dbfo list-presentation="list"?>
  83. <?dbhtml list-presentation="table"?>
  84. <varlistentry id="expect">
  85. <term><command>expect</command></term>
  86. <listitem>
  87. <para>Communicates with other interactive programs according
  88. to a script</para>
  89. <indexterm zone="ch-tools-expect expect">
  90. <primary sortas="b-expect">expect</primary>
  91. </indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="libexpect">
  95. <term><filename class="libraryfile">libexpect-&expect-lib-version;.so</filename></term>
  96. <listitem>
  97. <para>Contains functions that allow Expect to be used as a Tcl
  98. extension or to be used directly from C or C++ (without Tcl)</para>
  99. <indexterm zone="ch-tools-expect libexpect">
  100. <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
  101. </indexterm>
  102. </listitem>
  103. </varlistentry>
  104. </variablelist>
  105. </sect2>
  106. </sect1>