Changeset de33b2a for general/prog/expect.xml
- Timestamp:
- 03/12/2020 09:24:44 AM (4 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/expect.xml
r5ab87cfa rde33b2a 30 30 <title>Introduction to Expect</title> 31 31 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> 41 43 42 44 &lfs91_checked; … … 45 47 <itemizedlist spacing="compact"> 46 48 <listitem> 47 <para>Download (HTTP): <ulink url="&expect-download-http;"/></para> 49 <para> 50 Download (HTTP): <ulink url="&expect-download-http;"/> 51 </para> 48 52 </listitem> 49 53 <!-- <listitem> 50 <para>Download (FTP): <ulink url="&expect-download-ftp;"/></para> 54 <para> 55 Download (FTP): <ulink url="&expect-download-ftp;"/> 56 </para> 51 57 </listitem> --> 52 58 <listitem> 53 <para>Download MD5 sum: &expect-md5sum;</para> 59 <para> 60 Download MD5 sum: &expect-md5sum; 61 </para> 54 62 </listitem> 55 63 <listitem> 56 <para>Download size: &expect-size;</para> 64 <para> 65 Download size: &expect-size; 66 </para> 57 67 </listitem> 58 68 <listitem> 59 <para>Estimated disk space required: &expect-buildsize;</para> 69 <para> 70 Estimated disk space required: &expect-buildsize; 71 </para> 60 72 </listitem> 61 73 <listitem> 62 <para>Estimated build time: &expect-time;</para> 74 <para> 75 Estimated build time: &expect-time; 76 </para> 63 77 </listitem> 64 78 </itemizedlist> … … 80 94 <title>Installation of Expect</title> 81 95 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> 84 100 85 101 <!-- Not sure if we need a static library as it does not build by default … … 93 109 make</userinput></screen> 94 110 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> 98 118 99 119 <screen role="root"><userinput>make install && … … 105 125 <title>Command Explanations</title> 106 126 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> 113 137 114 138 <!-- Not really sure if this is required any longer as the library is now 115 139 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> 118 144 119 145 </sect2> … … 125 151 <title>Config Files</title> 126 152 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> 129 157 130 158 <indexterm zone="expect expect-config"> … … 141 169 <title>Configuration Information</title> 142 170 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> 148 179 149 180 </sect3> … … 178 209 <term><command>autoexpect</command></term> 179 210 <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> 182 215 <indexterm zone="expect autoexpect"> 183 216 <primary sortas="b-autoexpect">autoexpect</primary> … … 189 222 <term><command>autopasswd</command></term> 190 223 <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> 193 228 <indexterm zone="expect autopasswd"> 194 229 <primary sortas="b-autopasswd">autopasswd</primary> … … 200 235 <term><command>cryptdir</command></term> 201 236 <listitem> 202 <para>encrypts all files in a directory.</para> 237 <para> 238 encrypts all files in a directory. 239 </para> 203 240 <indexterm zone="expect cryptdir"> 204 241 <primary sortas="b-cryptdir">cryptdir</primary> … … 210 247 <term><command>decryptdir</command></term> 211 248 <listitem> 212 <para>decrypts all files in a directory.</para> 249 <para> 250 decrypts all files in a directory. 251 </para> 213 252 <indexterm zone="expect decryptdir"> 214 253 <primary sortas="b-decryptdir">decryptdir</primary> … … 220 259 <term><command>dislocate</command></term> 221 260 <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> 224 265 <indexterm zone="expect dislocate"> 225 266 <primary sortas="b-dislocate">dislocate</primary> … … 231 272 <term><command>expect</command></term> 232 273 <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> 235 278 <indexterm zone="expect expect-prog"> 236 279 <primary sortas="b-expect">expect</primary> … … 242 285 <term><command>ftp-rfc</command></term> 243 286 <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> 245 290 <indexterm zone="expect ftp-rfc"> 246 291 <primary sortas="b-ftp-rfc">ftp-rfc</primary> … … 252 297 <term><command>kibitz</command></term> 253 298 <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> 256 303 <indexterm zone="expect kibitz"> 257 304 <primary sortas="b-kibitz">kibitz</primary> … … 263 310 <term><command>lpunlock</command></term> 264 311 <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> 267 316 <indexterm zone="expect lpunlock"> 268 317 <primary sortas="b-lpunlock">lpunlock</primary> … … 274 323 <term><command>mkpasswd</command></term> 275 324 <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> 278 328 <indexterm zone="expect mkpasswd"> 279 329 <primary sortas="b-mkpasswd">mkpasswd</primary> … … 285 335 <term><command>passmass</command></term> 286 336 <listitem> 287 <para>changes a password on multiple machines.</para> 337 <para> 338 changes a password on multiple machines. 339 </para> 288 340 <indexterm zone="expect passmass"> 289 341 <primary sortas="b-passmass">passmass</primary> … … 295 347 <term><command>rftp</command></term> 296 348 <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> 300 354 <indexterm zone="expect rftp"> 301 355 <primary sortas="b-rftp">rftp</primary> … … 307 361 <term><command>rlogin-cwd</command></term> 308 362 <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> 311 367 <indexterm zone="expect rlogin-cwd"> 312 368 <primary sortas="b-rlogin-cwd">rlogin-cwd</primary> … … 318 374 <term><command>timed-read</command></term> 319 375 <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> 322 380 <indexterm zone="expect timed-read"> 323 381 <primary sortas="b-timed-read">timed-read</primary> … … 329 387 <term><command>timed-run</command></term> 330 388 <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> 332 392 <indexterm zone="expect timed-run"> 333 393 <primary sortas="b-timed-run">timed-run</primary> … … 339 399 <term><command>unbuffer</command></term> 340 400 <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> 343 405 <indexterm zone="expect unbuffer"> 344 406 <primary sortas="b-unbuffer">unbuffer</primary> … … 350 412 <term><command>weather</command></term> 351 413 <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> 354 418 <indexterm zone="expect weather"> 355 419 <primary sortas="b-weather">weather</primary> … … 361 425 <term><command>multixterm</command></term> 362 426 <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> 365 431 <indexterm zone="expect multixterm"> 366 432 <primary sortas="b-multixterm">multixterm</primary> … … 372 438 <term><command>tknewsbiff</command></term> 373 439 <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> 376 444 <indexterm zone="expect tknewsbiff"> 377 445 <primary sortas="b-tknewsbiff">tknewsbiff</primary> … … 383 451 <term><command>tkpasswd</command></term> 384 452 <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> 387 457 <indexterm zone="expect tkpasswd"> 388 458 <primary sortas="b-tkpasswd">tkpasswd</primary> … … 394 464 <term><command>xkibitz</command></term> 395 465 <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> 398 470 <indexterm zone="expect xkibitz"> 399 471 <primary sortas="b-xkibitz">xkibitz</primary> … … 405 477 <term><command>xpstat</command></term> 406 478 <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> 408 482 <indexterm zone="expect xpstat"> 409 483 <primary sortas="b-xpstat">xpstat</primary> … … 415 489 <term><filename class='libraryfile'>libexpect&expect-version;.so</filename></term> 416 490 <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> 420 497 <indexterm zone="expect libexpect"> 421 498 <primary sortas="c-libexpect&expect-version;">libexpect&expect-version;.so</primary>
Note:
See TracChangeset
for help on using the changeset viewer.