title: Is it possible to call a program and also obtain the input of that program in Python?
body: <p>I can call another program in Python using</p>
  
  <pre><code>subprocess.call(["do_something.bat"])
  </code></pre>
  
  <p>I want to know if I can collect the stdin input of <code>do_something.bat</code>?</p>
  
  <p><code>do_something.bat</code> is a launcher for a Java program, the Java program will prompt the user to enter project specific information such as project name, version, and will generate a project skeleton according to the user input.</p>
  
  <p>I use python to call this <code>do_something.bat</code>, and after it generates all the projects files, I need continue to go to a specific directory under project root, but that requires to know the project name, can I get the project name that the user previously entered?</p>