title: Fabric problems with reloading supervisor on remote host
body: <p>My project is hosted on Webfaction and supervisor is used to be aware of processes.
  I use shell utils to get the PID of supervisor and it works just fine when I do it manually, but I got random PIDs when executing the same command remotely with Fabric</p>
  
  <h3>Code to get PID of supervisor</h3>
  
  <pre><code>spid = run('ps auxw | grep supervisord | grep %s | tr -s \' \' | cut -d\  -f 2' % USER)
  
  if spid:                   # if supervisor is running and PID is found
      run('kill %s' % spid)  # kill supervidor daemon
  </code></pre>
  
  <p>I'm confused why I get random PIDs when calling command remotely, what is wrong with the way I do it?</p>
  
  <p>Thanks,</p>
  
  <p>Sultan</p>