title: Subprocess module errors with 'export' in python on linux?
body: <p>I'm setting up a program to connect my computer to our schools proxy and currently have something like this:</p>
  
  <pre><code>import subprocess
  import sys
  
  username = 'fergus.barker'
  password = '*************'
  proxy = 'proxy.det.nsw.edu.au:8080'
  options = '%s:%s@%s' % (username, password, proxy)
  
  subprocess.Popen('export http_proxy=' + options)
  </code></pre>
  
  <p>But upon running I get:</p>
  
  <pre><code>Traceback (most recent call last):
  File "school_proxy_settings.py", line 19, in &lt;module&gt;
   subprocess.Popen('export http_proxy=' + options)
  File "/usr/lib/python2.6/subprocess.py", line 621, in __init__
   errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1126, in _execute_child
   raise child_exception
  OSError: [Errno 2] No such file or directory
  </code></pre>
  
  <p>Why is this happening please guys?</p>