title: Using Python's subprocess.call to kill firefox process
body: <p>I am trying to kill any firefox processes running on my system as part of a python script, using the script below: </p>
  
  <pre><code>    if subprocess.call( [ "killall -9 firefox-bin" ] ) is not 0:
          self._logger.debug( 'Firefox cleanup - FAILURE!' )
      else:
          self._logger.debug( 'Firefox cleanup - SUCCESS!' )
  </code></pre>
  
  <p>I am encountering the following error as shown below, however 'killall -9 firefox-bin' works whenever I use it directly in the terminal without any errors. </p>
  
  <pre><code>       Traceback (most recent call last):
   File "./pythonfile", line 109, in __runMethod
   if subprocess.call( [ "killall -9 firefox-bin" ] ) is not 0:
   File "/usr/lib/python2.6/subprocess.py", line 478, in call
   p = Popen(*popenargs, **kwargs)
   File "/usr/lib/python2.6/subprocess.py", line 639, in __init__
   errread, errwrite)
   File "/usr/lib/python2.6/subprocess.py", line 1228, in _execute_child
   raise child_exception
   OSError: [Errno 2] No such file or directory
  </code></pre>
  
  <p>Am I missing something or should I be trying to use a different python module altogether? </p>