title: Python executing Class-dump command
body: <p>I am trying to execute the following code in Python</p>
  
  <pre><code>import os,subprocess
  from glob import glob
  
  path = "/Users/armed/private_SDKs"
  os.chdir(path)
  
  for file in glob("*.framework"):
       command = ['class-dump' , '-H' , file , '-o' , '~', '/Users/armed/Desktop/Headers/']
       subprocess.call(command)
  </code></pre>
  
  <p>On executing this script i get the following error :-</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;pyshell#52&gt;", line 3, in &lt;module&gt;
      subprocess.call(command)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 493, in call
      return Popen(*popenargs, **kwargs).wait()
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
      errread, errwrite)
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1228, in _execute_child
      raise child_exception
  OSError: [Errno 13] Permission denied
  </code></pre>
  
  <p>Any help is much appreciated !</p>