title: How can I use Expect to enter a password for a Perl script?
body: <p>I wish to automatically enter a password while running an install script. I have invoked the install script using the backticks in Perl. Now my issue is how do I enter that password using <code>expect</code> or something else?</p>
  
  <pre><code>my $op = `install.sh -f my_conf -p my_ip -s my_server`;
  </code></pre>
  
  <p>When the above is executed, a password line is printed:</p>
  
  <pre><code>Enter password for the packagekey: 
  </code></pre>
  
  <p>In the above line I wish to enter the password. </p>