title: Accessing an ALREADY running process, with Python
body: <p><strong>Question:</strong> Is there a way, using Python, to access the stdout of a running <em>process</em>? This process has <em>not</em> been started by Python.</p>
  
  <p><strong>Context:</strong> There is a program called <em>mayabatch</em>, that renders out images from 3D Maya scene files. If I were to run the program from the command line I would see progress messages from <em>mayabatch</em>. Sometimes, artists close these windows, leaving the progress untracable until the program finishes. That led me along this route of trying to read its stdout after it's been spawned by a foreign process.</p>
  
  <p><strong>Background:</strong></p>
  
  <ul>
  <li>OS: Windows 7 64-bit</li>
  </ul>
  
  <p><strong>My research so far:</strong> I have only found questions and answers of how to do this if it was a subprocess, using the <code>subprocess</code> module. I also looked briefly into <code>psutil</code>, but I could not find any way to read a process' stdout.</p>
  
  <p>Any help would be really appreciated. Thank you.</p>