title: Is there possible execute function while fabric SUDO is running
body: <p>I am executing a rsync command and getting the output in realtime with stdout.</p>
  
  <p>My problem is that I need to manipulate this output while my command is running. </p>
  
  <p>My old code worked with subprocess like this:</p>
  
  <pre><code>cmd = 'rsync -rc --delete --progress %s %s' % (path, PATH_LOCAL_STORAGE)
  with io.open("%s%s" % (TEMP_LOCAL, filename), 'wb') as writer:
          process = sudo(cmd, stdout=writer, shell=True, stdin=subprocess.PIPE)
          while process.poll() is None:
              doWhatIWant()
              time.sleep(5)
  </code></pre>
  
  <p>So my doWhatIWant was executed each 5 seconds while my code rsync command were running.</p>
  
  <p>Now I need to use Fabric Sudo instead of subprocess. I already tried to use @Parallel and @Task but without sucess.</p>