title: output the command line called by subprocess?
body: <p>I'm using the <code>subprocess.Popen</code> call, and in another question I found out that I had been misunderstanding how Python was generating arguments for the command line.  </p>
  
  <p><strong>My Question</strong><br>
  Is there a way to find out what the actual command line was?  </p>
  
  <p>Example Code :-</p>
  
  <pre><code>proc = subprocess.popen(....)
  print "the commandline is %s" % proc.getCommandLine()
  </code></pre>
  
  <p>How would you write <code>getCommandLine</code> ?</p>