build/fuchsia/remote_cmd.py
def RunCommand(self, command, silent, timeout_secs=None):
    """Executes an SSH command on the remote host and blocks until completion.

    command: A list of strings containing the command and its arguments.
    silent: If true, suppresses all output from 'ssh'.
    timeout_secs: If set, limits the amount of time that |command| may run.
                  Commands which exceed the timeout are killed.

    Returns the exit code from the remote command."""

    ssh_command = self._GetSshCommandLinePrefix() + command
    logging.debug(ssh_command)
    _SSH_LOGGER.debug('ssh exec: ' + ' '.join(ssh_command))
    retval, _, _ = SubprocessCallWithTimeout(ssh_command, silent, timeout_secs)
    return retval
Executes an SSH command on the remote host and blocks until completion.

    command: A list of strings containing the command and its arguments.
    silent: If true, suppresses all output from 'ssh'.
    timeout_secs: If set, limits the amount of time that |command| may run.
                  Commands which exceed the timeout are killed.

    Returns the exit code from the remote command.
Executes an SSH command on the remote host and blocks until completion.
command: A list of strings containing the command and its arguments.
silent: If true, suppresses all output from 'ssh'.
timeout_secs: If set, limits the amount of time that |command| may run.
Commands which exceed the timeout are killed.

Returns the exit code from the remote command.
Executes an SSH command on the remote host and blocks until completion . command : A list of strings containing the command and its arguments . silent : If true suppresses all output from ' ssh ' . timeout_secs : If set limits the amount of time that |command| may run . Commands which exceed the timeout are killed . Returns the exit code from the remote command .
def RunCommand(self, command, silent, timeout_secs=None):
    ssh_command = self._GetSshCommandLinePrefix() + command
    logging.debug(ssh_command)
    _SSH_LOGGER.debug('ssh exec: ' + ' '.join(ssh_command))
    retval, _, _ = SubprocessCallWithTimeout(ssh_command, silent, timeout_secs)
    return retval
def RunCommand ( self , command , silent , timeout_secs = None ) : ssh_command = self . _GetSshCommandLinePrefix ( ) + command logging . debug ( ssh_command ) _SSH_LOGGER . debug ( 'ssh exec: ' + ' ' . join ( ssh_command ) ) retval , _ , _ = SubprocessCallWithTimeout ( ssh_command , silent , timeout_secs ) return retval
Executes an SSH command on the remote host and blocks until completion.
Executes an SSH command on the remote host and blocks until completion .
"""Executes an SSH command on the remote host and blocks until completion.

    command: A list of strings containing the command and its arguments.
    silent: If true, suppresses all output from 'ssh'.
    timeout_secs: If set, limits the amount of time that |command| may run.
                  Commands which exceed the timeout are killed.

    Returns the exit code from the remote command."""
self
command
silent
timeout_secs