def __call__(self, event):
        d = defer.Deferred()
        log.info("Running external command: %s" % (self.cmd,))
        reactor.spawnProcess(
            SpawnCommandProtocol(d, event.text),
            self.cmd,
            args=self.args,
            env=os.environ
        )
        return d
dataset/ETHPy150Open jdswinbank/Comet/comet/handler/spawn.py/SpawnCommand.__call__/original