title: Seeing logs of subprocess.Popen()
body: <p>I have modified a file in usr/bin called tsudpsend.c and made the compilation and gave me no error.</p>
  
  <p>I'm calling this executable file from a python script as follows:</p>
  
  <pre><code>self.proc = []
  ...appending to self.proc some output from other applications...
  self.proc.append(subprocess.Popen(["tsudpsend", "/dev/stdin", out_address, str(port), "10000000", "eth0"], stdin=self.proc[-1].stdout, stdout=subprocess.PIPE))
  </code></pre>
  
  <p>I understand that if I want to get the output from subprocess.Popen I would use something like this</p>
  
  <pre><code>self.out_pipe = self.proc[-1].stdout.fileno()
  print self.out_pipe
  </code></pre>
  
  <p>However, this is not sufficient. I would like to see the complete logs of this c file running. I've been searching for a while but I have no clue. Any suggestions please? </p>