title: How to run ruby file in the background using Python and get stderr and stout?
body: <p>I am developing a Python based GUI.<br>
  I need to run a ruby file  and get its output. I did it successfully using subprocess module.
  But I need to run the file in the background and I need to get its output as well.</p>
  
  <p>Can you please let me know how to achieve this?</p>