code: def run_command(self, command, message):
          
          proc = subprocess.Popen([
              'echo \'%s\' | %s' % (fedmsg.encoding.dumps(message), command)
          ], shell=True, executable='/bin/bash')
          return proc.wait()
docs: Use subprocess; feed the message to our command over stdin