title: how to know pexpect command actually ran?
body: <p>I have a command  @ "tool --server=commander.company.com login username" which prompts for "Password". I'm using pexpect to run the command and expecting it and using sendline to 
  send the password. There is no error when I run it, but these commands don't seem to run. How can I  know that this actually ran?</p>
  
  <pre><code>child = pexpect.spawn ('tool --server=commander.company.com login username')
  child.expect('Password:')
  child.sendline('#password')
  </code></pre>