title: Command waiting for User Input, Subprocess
body: <p>I have a problem which I cannot seem to solve when I am using the <code>subprocess</code> module in Python.</p>
  
  <p>When I execute the command in the cmd prompt, the execution is paused till the user gives an input to the question asked (for example password).
  The problem is that the question can vary based on the users setting for the software. The question could be for the username first and then the second question could be the password or the question could be straight away for the password. If I knew the question was always for the password, then I could straight away do a <code>stndin</code> and the program will continue. But that is not the case. So here is my question</p>
  
  <p>When I spawn a process using <code>subprocess.Popen(my_command, stdin=subprocess.PIPE, stdout=subprocess.PIPE)</code>, the process is waiting for a user input. How can I get the question that the process is asking so that via Python I can get the user input and communicate it to the process.</p>
  
  <p>Thanks in advance</p>