Ignore:
Timestamp:
03/12/2020 09:24:44 AM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
6ea9f5b3
Parents:
5ab87cfa
Message:

Format general/prog

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/expect.xml

    r5ab87cfa rde33b2a  
    3030    <title>Introduction to Expect</title>
    3131
    32     <para>The <application>Expect</application> package was installed in the
    33     LFS temporary tools directory for testing other packages.  These
    34     procedures install it in a permanent location.  It contains tools for
    35     automating interactive applications such as <command>telnet</command>,
    36     <command>ftp</command>, <command>passwd</command>,
    37     <command>fsck</command>, <command>rlogin</command>,
    38     <command>tip</command>, etc. <application>Expect</application> is
    39     also useful for testing these same applications as well as easing all sorts of
    40     tasks that are prohibitively difficult with anything else.</para>
     32    <para>
     33      The <application>Expect</application> package was installed in the
     34      LFS temporary tools directory for testing other packages.  These
     35      procedures install it in a permanent location.  It contains tools for
     36      automating interactive applications such as <command>telnet</command>,
     37      <command>ftp</command>, <command>passwd</command>,
     38      <command>fsck</command>, <command>rlogin</command>,
     39      <command>tip</command>, etc. <application>Expect</application> is also
     40      useful for testing these same applications as well as easing all sorts of
     41      tasks that are prohibitively difficult with anything else.
     42    </para>
    4143
    4244    &lfs91_checked;
     
    4547    <itemizedlist spacing="compact">
    4648      <listitem>
    47         <para>Download (HTTP): <ulink url="&expect-download-http;"/></para>
     49        <para>
     50          Download (HTTP): <ulink url="&expect-download-http;"/>
     51        </para>
    4852      </listitem>
    4953      <!-- <listitem>
    50         <para>Download (FTP): <ulink url="&expect-download-ftp;"/></para>
     54        <para>
     55          Download (FTP): <ulink url="&expect-download-ftp;"/>
     56        </para>
    5157      </listitem> -->
    5258      <listitem>
    53         <para>Download MD5 sum: &expect-md5sum;</para>
     59        <para>
     60          Download MD5 sum: &expect-md5sum;
     61        </para>
    5462      </listitem>
    5563      <listitem>
    56         <para>Download size: &expect-size;</para>
     64        <para>
     65          Download size: &expect-size;
     66        </para>
    5767      </listitem>
    5868      <listitem>
    59         <para>Estimated disk space required: &expect-buildsize;</para>
     69        <para>
     70          Estimated disk space required: &expect-buildsize;
     71        </para>
    6072      </listitem>
    6173      <listitem>
    62         <para>Estimated build time: &expect-time;</para>
     74        <para>
     75          Estimated build time: &expect-time;
     76        </para>
    6377      </listitem>
    6478    </itemizedlist>
     
    8094    <title>Installation of Expect</title>
    8195
    82     <para>Install <application>Expect</application> by running the following
    83     commands:</para>
     96    <para>
     97      Install <application>Expect</application> by running the following
     98      commands:
     99    </para>
    84100
    85101    <!-- Not sure if we need a static library as it does not build by default
     
    93109make</userinput></screen>
    94110
    95     <para>To test the results, issue: <command>make test</command>.</para>
    96 
    97     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     111    <para>
     112      To test the results, issue: <command>make test</command>.
     113    </para>
     114
     115    <para>
     116      Now, as the <systemitem class="username">root</systemitem> user:
     117    </para>
    98118
    99119<screen role="root"><userinput>make install &amp;&amp;
     
    105125    <title>Command Explanations</title>
    106126
    107     <para><parameter>-with-tcl=/usr/lib</parameter>: This parameter is used to
    108     tell the <command>configure</command> script where the
    109     <command>tclConfig.sh</command> is located.</para>
    110 
    111     <para><parameter>--enable-shared</parameter>: This option enables
    112     building the shared library.</para>
     127    <para>
     128      <parameter>-with-tcl=/usr/lib</parameter>: This parameter is used to
     129      tell the <command>configure</command> script where the
     130      <command>tclConfig.sh</command> is located.
     131    </para>
     132
     133    <para>
     134      <parameter>--enable-shared</parameter>: This option enables
     135      building the shared library.
     136    </para>
    113137
    114138    <!-- Not really sure if this is required any longer as the library is now
    115139         installed directly in /usr/lib/expect5.45/. -->
    116     <para><command>ln -sf ...</command>: This command creates a required link
    117     to the shared library.</para>
     140    <para>
     141      <command>ln -sf ...</command>: This command creates a required link
     142      to the shared library.
     143    </para>
    118144
    119145  </sect2>
     
    125151      <title>Config Files</title>
    126152
    127       <para><filename>$exp_library/expect.rc</filename> and
    128       <filename>~/.expect.rc</filename></para>
     153      <para>
     154        <filename>$exp_library/expect.rc</filename> and
     155        <filename>~/.expect.rc</filename>
     156      </para>
    129157
    130158      <indexterm zone="expect expect-config">
     
    141169      <title>Configuration Information</title>
    142170
    143       <para>Reference the <command>expect</command> man page for information about
    144       utilizing the <filename>expect.rc</filename> configuration files. Additionally,
    145       many of the tools contained in the <application>Expect</application> package
    146       will use their own configuration files. Reference the respective man page, or
    147       examine the script directly for configuration file information.</para>
     171      <para>
     172        Reference the <command>expect</command> man page for information about
     173        utilizing the <filename>expect.rc</filename> configuration files.
     174        Additionally, many of the tools contained in the
     175        <application>Expect</application> package will use their own
     176        configuration files. Reference the respective man page, or
     177        examine the script directly for configuration file information.
     178      </para>
    148179
    149180    </sect3>
     
    178209        <term><command>autoexpect</command></term>
    179210        <listitem>
    180           <para>generates an <application>Expect</application> script from
    181           watching a session.</para>
     211          <para>
     212            generates an <application>Expect</application> script from
     213            watching a session.
     214          </para>
    182215          <indexterm zone="expect autoexpect">
    183216            <primary sortas="b-autoexpect">autoexpect</primary>
     
    189222        <term><command>autopasswd</command></term>
    190223        <listitem>
    191           <para>is a wrapper to make <command>passwd</command>(1) be
    192           non-interactive.</para>
     224          <para>
     225            is a wrapper to make <command>passwd</command>(1) be
     226            non-interactive.
     227          </para>
    193228          <indexterm zone="expect autopasswd">
    194229            <primary sortas="b-autopasswd">autopasswd</primary>
     
    200235        <term><command>cryptdir</command></term>
    201236        <listitem>
    202           <para>encrypts all files in a directory.</para>
     237          <para>
     238            encrypts all files in a directory.
     239          </para>
    203240          <indexterm zone="expect cryptdir">
    204241            <primary sortas="b-cryptdir">cryptdir</primary>
     
    210247        <term><command>decryptdir</command></term>
    211248        <listitem>
    212           <para>decrypts all files in a directory.</para>
     249          <para>
     250            decrypts all files in a directory.
     251          </para>
    213252          <indexterm zone="expect decryptdir">
    214253            <primary sortas="b-decryptdir">decryptdir</primary>
     
    220259        <term><command>dislocate</command></term>
    221260        <listitem>
    222           <para>allows processes to be disconnected and reconnected to a
    223           terminal.</para>
     261          <para>
     262            allows processes to be disconnected and reconnected to a
     263            terminal.
     264          </para>
    224265          <indexterm zone="expect dislocate">
    225266            <primary sortas="b-dislocate">dislocate</primary>
     
    231272        <term><command>expect</command></term>
    232273        <listitem>
    233           <para>is a program that <quote>talks</quote> to other interactive
    234           programs according to a script.</para>
     274          <para>
     275            is a program that <quote>talks</quote> to other interactive
     276            programs according to a script.
     277          </para>
    235278          <indexterm zone="expect expect-prog">
    236279            <primary sortas="b-expect">expect</primary>
     
    242285        <term><command>ftp-rfc</command></term>
    243286        <listitem>
    244           <para>retrieves an RFC (or the index) from UUNET.</para>
     287          <para>
     288            retrieves an RFC (or the index) from UUNET.
     289          </para>
    245290          <indexterm zone="expect ftp-rfc">
    246291            <primary sortas="b-ftp-rfc">ftp-rfc</primary>
     
    252297        <term><command>kibitz</command></term>
    253298        <listitem>
    254           <para>allows two (or more) people to interact with one shell
    255           (or any arbitrary program).</para>
     299          <para>
     300            allows two (or more) people to interact with one shell
     301            (or any arbitrary program).
     302          </para>
    256303          <indexterm zone="expect kibitz">
    257304            <primary sortas="b-kibitz">kibitz</primary>
     
    263310        <term><command>lpunlock</command></term>
    264311        <listitem>
    265           <para>unhangs a printer which claims it is <quote>waiting for
    266           lock</quote>.</para>
     312          <para>
     313            unhangs a printer which claims it is <quote>waiting for
     314            lock</quote>.
     315          </para>
    267316          <indexterm zone="expect lpunlock">
    268317            <primary sortas="b-lpunlock">lpunlock</primary>
     
    274323        <term><command>mkpasswd</command></term>
    275324        <listitem>
    276           <para>generates passwords and can apply them automatically to
    277           users.</para>
     325          <para>
     326            generates passwords and can apply them automatically to users.
     327          </para>
    278328          <indexterm zone="expect mkpasswd">
    279329            <primary sortas="b-mkpasswd">mkpasswd</primary>
     
    285335        <term><command>passmass</command></term>
    286336        <listitem>
    287           <para>changes a password on multiple machines.</para>
     337          <para>
     338            changes a password on multiple machines.
     339          </para>
    288340          <indexterm zone="expect passmass">
    289341            <primary sortas="b-passmass">passmass</primary>
     
    295347        <term><command>rftp</command></term>
    296348        <listitem>
    297           <para>is much like <command>ftp</command> except it uses
    298           <option>~g</option> and <option>~p</option> instead of
    299           <option>mget</option> and <option>mput</option>.</para>
     349          <para>
     350            is much like <command>ftp</command> except it uses
     351            <option>~g</option> and <option>~p</option> instead of
     352            <option>mget</option> and <option>mput</option>.
     353          </para>
    300354          <indexterm zone="expect rftp">
    301355            <primary sortas="b-rftp">rftp</primary>
     
    307361        <term><command>rlogin-cwd</command></term>
    308362        <listitem>
    309           <para>is <command>rlogin</command> except it uses the local current
    310           directory as the current working directory on the remote machine.</para>
     363          <para>
     364            is <command>rlogin</command> except it uses the local current
     365            directory as the current working directory on the remote machine.
     366          </para>
    311367          <indexterm zone="expect rlogin-cwd">
    312368            <primary sortas="b-rlogin-cwd">rlogin-cwd</primary>
     
    318374        <term><command>timed-read</command></term>
    319375        <listitem>
    320           <para> reads a complete line from stdin and aborts after a given
    321           number of seconds.</para>
     376          <para>
     377            reads a complete line from stdin and aborts after a given
     378            number of seconds.
     379          </para>
    322380          <indexterm zone="expect timed-read">
    323381            <primary sortas="b-timed-read">timed-read</primary>
     
    329387        <term><command>timed-run</command></term>
    330388        <listitem>
    331           <para>runs a program for a given amount of time.</para>
     389          <para>
     390            runs a program for a given amount of time.
     391          </para>
    332392          <indexterm zone="expect timed-run">
    333393            <primary sortas="b-timed-run">timed-run</primary>
     
    339399        <term><command>unbuffer</command></term>
    340400        <listitem>
    341           <para>disables the output buffering that occurs when program output
    342           is redirected.</para>
     401          <para>
     402            disables the output buffering that occurs when program output
     403            is redirected.
     404          </para>
    343405          <indexterm zone="expect unbuffer">
    344406            <primary sortas="b-unbuffer">unbuffer</primary>
     
    350412        <term><command>weather</command></term>
    351413        <listitem>
    352           <para>retrieves a weather report (courtesy University of Michigan)
    353           for a given city or geographical area.</para>
     414          <para>
     415            retrieves a weather report (courtesy University of Michigan)
     416            for a given city or geographical area.
     417          </para>
    354418          <indexterm zone="expect weather">
    355419            <primary sortas="b-weather">weather</primary>
     
    361425        <term><command>multixterm</command></term>
    362426        <listitem>
    363           <para>creates multiple <command>xterm</command>s that can be driven
    364           together or separately.</para>
     427          <para>
     428            creates multiple <command>xterm</command>s that can be driven
     429            together or separately.
     430          </para>
    365431          <indexterm zone="expect multixterm">
    366432            <primary sortas="b-multixterm">multixterm</primary>
     
    372438        <term><command>tknewsbiff</command></term>
    373439        <listitem>
    374           <para>pops up a window when there is unread news in your favorite
    375           newsgroups and removes the window after you've read the news.</para>
     440          <para>
     441            pops up a window when there is unread news in your favorite
     442            newsgroups and removes the window after you've read the news.
     443          </para>
    376444          <indexterm zone="expect tknewsbiff">
    377445            <primary sortas="b-tknewsbiff">tknewsbiff</primary>
     
    383451        <term><command>tkpasswd</command></term>
    384452        <listitem>
    385           <para>is a script to change passwords using
    386           <command>expect</command> and <application>Tk</application>.</para>
     453          <para>
     454            is a script to change passwords using
     455            <command>expect</command> and <application>Tk</application>.
     456          </para>
    387457          <indexterm zone="expect tkpasswd">
    388458            <primary sortas="b-tkpasswd">tkpasswd</primary>
     
    394464        <term><command>xkibitz</command></term>
    395465        <listitem>
    396           <para>allows users in separate <command>xterm</command>s to share
    397           one shell (or any program that runs in an <command>xterm</command>).</para>
     466          <para>
     467            allows users in separate <command>xterm</command>s to share one
     468            shell (or any program that runs in an <command>xterm</command>).
     469          </para>
    398470          <indexterm zone="expect xkibitz">
    399471            <primary sortas="b-xkibitz">xkibitz</primary>
     
    405477        <term><command>xpstat</command></term>
    406478        <listitem>
    407           <para>is a script that acts as a front-end for <command>xpilot</command>.</para>
     479          <para>
     480            is a script that acts as a front-end for <command>xpilot</command>.
     481          </para>
    408482          <indexterm zone="expect xpstat">
    409483            <primary sortas="b-xpstat">xpstat</primary>
     
    415489        <term><filename class='libraryfile'>libexpect&expect-version;.so</filename></term>
    416490        <listitem>
    417           <para> contains functions that allow <application>Expect</application> to be
    418           used as a <application>Tcl</application> extension or to be used directly from
    419           C or C++ (without <application>Tcl</application>).</para>
     491          <para>
     492            contains functions that allow <application>Expect</application> to
     493            be used as a <application>Tcl</application> extension or to be
     494            used directly from C or C++ (without
     495            <application>Tcl</application>).
     496          </para>
    420497          <indexterm zone="expect libexpect">
    421498            <primary sortas="c-libexpect&expect-version;">libexpect&expect-version;.so</primary>
Note: See TracChangeset for help on using the changeset viewer.