Run remote commands

execute(connection, command)

Arguments

connection

a connection object as returned by get_connection

command

a valid command for the remote system's shell environment

Examples

# NOT RUN {
connection <- get_connection(host = "some.remote.system", user = "you")
execute(connection, "ps -ef | grep R /*")
# }