ape.parts.connections.sshconnection.SSHConnection.sudo

SSHConnection.sudo(command, password, timeout=None)

A convenience method to hide what’s needed to run as root

Param:
  • command: command to run (without the ‘sudo’ keyword)
  • password: the sudoer’s password
  • timeout: Amount of time to wait for the connection to respond
Returns:

InOutError named tuple

Navigation