title: How to make a call to an executable from Python script?
body: <p>I need to execute this script from my Python script.</p>
  
  <p>Is it possible? The script generate some outputs with some files being written. How do I access these files? I have tried with subprocess call function but without success.</p>
  
  <pre><code>fx@fx-ubuntu:~/Documents/projects/foo$ bin/bar -c somefile.xml -d text.txt -r aString -f anotherString &gt;output
  </code></pre>
  
  <p>The application "bar" also references to some libraries, it also create the file "bar.xml" besides the output. How do I get access to these files? Just by using open()?</p>
  
  <p>Thank you,</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>The error from Python runtime is only this line. </p>
  
  <pre><code>$ python foo.py
  bin/bar: bin/bar: cannot execute binary file
  </code></pre>