예제 #1
0
 def run_command(self, command_line, timeout=DEFAULT_TIMEOUT):
     """
     Runs the given command on the remote machine
     :param command_line: The command line to run
     :param timeout: Timeout in seconds for command.
     :return: Command result
     """
     c_id = self.run_command_async(command_line)
     return self.wait_commands([Cmd(self, c_id)], timeout)[1]
예제 #2
0
 def run_aws_cmd_async(instance_id, is_linux, cmd_line):
     cmd_runner = AwsCmdRunner(is_linux, instance_id)
     return Cmd(cmd_runner, cmd_runner.run_command_async(cmd_line))