This file is indexed.

/usr/share/doc/expect-lite/expect-lite_install.html is in expect-lite 4.6.2-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>






<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

<meta name="AUTHOR" content="Craig Miller">
<link rel="stylesheet" type="text/css" href="el.css"><title>expect-lite Installation and Quick Start Guide</title></head><body>

<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
<tbody class="page">
<tr>
<td style="vertical-align: top; width: 35%;"><br>
<div style="text-align: center;"><a href="index.html"><img style="border: 0px none ; font-weight: bold; width: 200px; height: 213px;" alt="greater than" src="keycap_200.jpg"></a><br>
<h1>expect-lite</h1>
<br>
<h2>Automation for the rest of us</h2>
<h2 style="text-align: center;">Installation and
Quick Start Guide</h2>
</div>
<script type="text/javascript" src="js-side-menu.js"></script>
<noscript><br>Please Enable Javascript
to see Features, Downloads, and Docs </noscript>
</td>
<td style="vertical-align: middle; width: 1px;" vertical-align="" top="" 5="">
<img src="vbar.gif" style="width: 1px; height: 4000px;"></td>
<td style="vertical-align: top; width: 5%;"><br>
</td>
<td style="vertical-align: top;">
<!--- Begin of Right Column Content --->


<h2>Download<br></h2>expect-lite can be downloaded from&nbsp;the expect-lite Project Page: <a href="http://sourceforge.net/projects/expect-lite">http://sourceforge.net/projects/expect-lite</a><br>The tar.gz/rpm/deb package includes the latest expect-lite, as well as over 25 examples.<br>
      <br>
Or, if you are running a modern version of Ubuntu: <small><span style="font-family: monospace;">apt-get install expect-lite</span></small><br><br>
Or, if you are running a modern version of gentoo: <small><span style="font-family: monospace;">emerge -auv expect-lite</span></small><br>
      <br>
Or, download the RPM or DEB file (from sourceforge) and install using '<small><span style="font-family: monospace;">sudo rpm -Uv expect-lite*.rpm</span></small>' or '<small><span style="font-family: monospace;">sudo dpkg -i expect-lite*deb</span></small>' Then use the '<small><span style="font-family: monospace;">/usr/share/doc/expect-lite/install.sh -c</span></small>' to configure ssh and .bashrc if desired<br>
<br><h2>Quick Install</h2>To install using the tar.gz file: Prior to
untaring the package, be sure to type 'umask 0' to preserve permissions
of the package. Untar the expect-lite package, and use the
included install.sh script (as of version 4.0.2). If on
Linux/Unix/MacOS X, sudo permissions will be required to install:<br>
      <br>
Change directory to expect-lite.proj<br>
      <pre>cd expect-lite.proj</pre>
Run installer<br><pre>sudo ./install.sh</pre>Since cygwin does not require sudo previlages, just type:<br><pre>./install.sh</pre>Test by typing at the prompt:<br>
<pre>expect-lite</pre>
If you see the help, then it is ready to go, installation is complete! <br>
      <br>
The install.sh has other options such as unprivileged install, and user
configure only, which may be useful in your environment, refer to
./install.sh -h for more info.<br>
<br>
<h2>Quick Start</h2>
Expect-lite has many features which make it useful, and the <a href="http://expect-lite.sourceforge.net/">documenation</a>
highlights
those. But to start using expect-lite quickly, you require two items:<br>
<ol>
<li>a script</li>
<li>a host&nbsp;</li>
</ol>
Here is a quick script which you can paste into a file to test
expect-lite,&nbsp;call it test.elt :<br>
<pre>; ==== Ping localhost and check result ====<br>@5<br>&gt;ping  localhost<br>&lt;&lt;127.0.0.1<br>&lt;&lt;127.0.0.1<br>&lt;&lt;127.0.0.1<br>&gt;&gt;^C<br>&gt;<br></pre>
The second item you require is a host to run your script against.
Expect-lite is designed to log into a remote host and run your script,
as if a person was typing the commands. However that may require
setting up ssh keys and so forth, and this is the Quick Start section.
Type the following to run the above script on your localhost:<br>
<pre>expect-lite -c test.elt </pre>
There should be output that looks similar to the following:<br>
<pre>cvmiller@maile:~/Freescale$ <br>cvmiller@maile:~/Freescale$ ping localhost<br>PING localhost (127.0.0.1) 56(84) bytes of data.<br>64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.020 ms<br>64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.023 ms<br>sending ^C<br><br>^C<br>--- localhost ping statistics ---<br>2 packets transmitted, 2 received, 0% packet loss, time 1007ms<br>rtt min/avg/max/mdev = 0.020/0.021/0.023/0.004 ms<br><br>##Overall Result: PASS <br></pre>Congratulations
you have just run your first expect-lite script! expect-lite is
designed to run in a multi-user environment, utilizing shell variables
to set one's preferences. <br>
<br>
<h2>Customizing expect-lite<br>
</h2>
<a name="more_details"></a>There are aspects of expect-lite which you
may want to tune to your environment. The Installer will set up your
.bashrc file to source the expect-lite configuration from
.expect-literc.&nbsp;Customization is controlled through shell
environment variables. A sample bashrc file is supplied in the
expect-lite
package. The contents of which are as follows:<br>
      <pre># bashrc<br><br># append this sample bashrc to your .bashrc to set customize expect-lite<br><br># remote host to connect, default=none<br># 	expect-lite was designed to automate server farm environments<br>#	However, it can also be run from the local machine or PC by setting<br>#	this value to 'none'. The CLI option -r &lt;rhost&gt; will overide this value<br>#export EL_REMOTE_HOST=localhost<br><br># name of expect-lite script<br>#	Good for testing one script over and over<br>#export EL_CMD_FILE=<br><br># change to this dir upon login<br>#export EL_USER_DIR=<br><br># Login method to remote host<br>#	expect-lite includes a utilty (setup_local_ssh.sh) to automatically setup ssh <br>#	keys for the user to use with the localhost. This is the fastest method <br>#	of script execution, much faster than 'none'.<br>#	Choose one login method: telnet|ssh|ssh_key|none<br>#export EL_CONNECT_METHOD=ssh_key<br>export EL_CONNECT_METHOD=none<br><br># username for telnet|ssh|ssh_key access methods<br># User is also used by ssh_key method as well. If user is blank then the default<br>#	user will be used (the user running the script). However if $user is defined<br>#	then ssh_key will use the following command: ssh $user@$host<br>#export EL_CONNECT_USER=<br><br># password for telnet|ssh access methods<br>#export EL_CONNECT_PASS=<br><br># Delay (in ms) to wait for host in Not Expect, and Dynamic Var Capture<br># 100 ms is a good value for a local LAN, 200 ms if running across high speed internet<br>#export EL_DELAY_WAIT_FOR_HOST=<br><br># User defined constants<br>#EL_*                         <br><br></pre>
      <br>
      <br>
      <h2><a name="connect_method"></a>EL_CONNECT_METHOD<br>
      </h2>
expect-lite was designed for a server farm environment, and as such can
automatically connect and log into a remote host. expect-lite supports
three methods to connect to
remote hosts. <br>
      <br>

Expect-lite supports three connection methods:<br>

      <ol>
<li>telnet</li><li>ssh</li><li>ssh_key</li>
      </ol>
The ssh_key method is the most secure, as no passwords
are utilized. However this requires setting up ssh keys prior to using
this method. <br>

      <pre># Login method to remote host<br>#	expect-lite includes a utilty (setup_local_ssh.sh) to automatically setup ssh <br>#	keys for the user to use with the localhost. This is the fastest method <br>#	of script execution, much faster than 'none'.<br>#	Choose one login method: telnet|ssh|ssh_key|none<br>export EL_CONNECT_METHOD=ssh_key<br><br></pre>

There is a forth method, as shown in the Quick Start, where no remote
login is performed. This method was designed primarily for the Quick Start
section, however, it can be used for most scripts (including in the Cygwin environment). To invoke this method the
value of "none" is given for the remote host on the command line.<br>

      <pre>expect-lite -r none -c test.elt<br></pre>
Even when
no remote host is required, it is best to log into the localhost, since
the underlying Expect has problems with synchronization (between send
and expect strings) when a remote host is 'none'. The installer will
detect if the install machine is running sshd, if so it will configure
.expect-literc to use 'ssh_keys" and run the provided
shell script 'setup_local_ssh.sh' (in the Tools directory) which will
setup
the localhost with ssh keys. This can also be one manually at a later
time, it is only necessary to run it once:<br>
      <pre>./Tools/setup_local_ssh.sh</pre>
<br>
<h2><a name="user_name_password"></a>EL_CONNECT_USER &amp; EL_CONNECT_PASS<br>
</h2>The connection methods telnet &amp; ssh require user name and
password. A different user can be used for the ssh_key method as well,
by setting EL_CONNECT_USER. The ssh_key is most secure since the user
name and passwords are not used. However this may not be practical for
your environment.<br>
<pre># username for telnet|ssh|ssh_key access methods<br># User is also used by ssh_key method as well. If user is blank then the default<br>#	user will be used (the user running the script). However if $user is defined<br>#	then ssh_key will use the following command: ssh $user@$host<br>#export EL_CONNECT_USER=<br><br># password for telnet|ssh access methods<br>#export EL_CONNECT_PASS=<br><br></pre>
The default username and passwords are blank, and are not used for the 'none' connection method.<br><br>

<h2><a name="delay_wait_for_host"></a>EL_DELAY_WAIT_FOR_HOST</h2>
Because of the nature of accessing a remote host, expect-lite may have
to wait for a response if the access is slow (eg. over a VPN via the
internet).<br>
<pre>## Delay (in ms) to wait for host in Not Expect, and Dynamic Var Capture<br># 100 ms is a good value for a local LAN, 200 ms if running across high speed internet<br>#export EL_DELAY_WAIT_FOR_HOST=<br><br></pre>
The value of 100 ms is a good value for a local LAN, while 200 ms may
be desired if running across high speed internet. As this value is
increased the script will run slower. It is recommended that a minimum
value be used to prevent scripts from taking too long to run.<br>
      <br>
<h2><a name="comment_color"></a>EL_*</h2>The last section of the sample
bashrc file is reserved for the user. expect-lite will read in any
shell environment variable which begins with EL_<br>
      <br>
The shell variables are treated as constants in the expect-lite script, overriding any internal variables.<br><pre># User defined constants<br>#export EL_*                         <br>export EL_root_pass=mysecret<br></pre>
<br>
<br>
</td>
</tr>
</tbody>
</table>
<hr style="width: 100%; height: 2px;"><span style="font-style: italic;">19 November 2013<br>
</span><a href="http://expect-lite.sourceforge.net/"><small>http://expect-lite.sourceforge.net/</small></a><span style="font-style: italic;"><br>
</span><br>
<small><span style="font-style: italic;">this
document for version 4.6.2 or later</span><br style="font-style: italic;">
</small>
</body></html>