expect.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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>To test the results, issue:</para>
  67. <screen><userinput remap="test">make test</userinput></screen>
  68. <para>Install the package:</para>
  69. <screen><userinput remap="install">make install
  70. ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib</userinput></screen>
  71. </sect2>
  72. <sect2 id="contents-expect" role="content">
  73. <title>Contents of Expect</title>
  74. <segmentedlist>
  75. <segtitle>Installed program</segtitle>
  76. <segtitle>Installed library</segtitle>
  77. <seglistitem>
  78. <seg>expect</seg>
  79. <seg>libexpect-&expect-lib-version;.so</seg>
  80. </seglistitem>
  81. </segmentedlist>
  82. <variablelist>
  83. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  84. <?dbfo list-presentation="list"?>
  85. <?dbhtml list-presentation="table"?>
  86. <varlistentry id="expect">
  87. <term><command>expect</command></term>
  88. <listitem>
  89. <para>Communicates with other interactive programs according
  90. to a script</para>
  91. <indexterm zone="ch-tools-expect expect">
  92. <primary sortas="b-expect">expect</primary>
  93. </indexterm>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="libexpect">
  97. <term><filename class="libraryfile">libexpect-&expect-lib-version;.so</filename></term>
  98. <listitem>
  99. <para>Contains functions that allow Expect to be used as a Tcl
  100. extension or to be used directly from C or C++ (without Tcl)</para>
  101. <indexterm zone="ch-tools-expect libexpect">
  102. <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
  103. </indexterm>
  104. </listitem>
  105. </varlistentry>
  106. </variablelist>
  107. </sect2>
  108. </sect1>