def execute(self, *args, **kwargs):
        retcode = kwargs.pop("retcode", 0)
        input = kwargs.pop("input", None)
        proc = self.popen(*args, **kwargs)
        stdout, stderr = proc.communicate(input)
        if retcode is not None and proc.returncode != retcode:
            raise ProcessExecutionError(proc.returncode, stdout, stderr)
        return proc.returncode, stdout, stderr
Runs the given command line remotely (over SSH), waits for it to finish,
dataset/ETHPy150Open sccn/SNAP/src/rpyc/utils/ssh.py/SshContext.execute