title: python run program which requires password from user
body: <p>I am writing an automation script with Python in Linux. It calls another process which requires the user to enter a password. </p>
  
  <p>I have implemented it using <a href="https://github.com/pexpect/pexpect" rel="nofollow">pexpect</a> where I just spawn the command and then do an interact.</p>
  
  <p>Is there an alternative method? I cannot use pexpect as I need to run a script on a machine which does not have pexpect installed.</p>