Run runs cmd on the remote host. Typically, the remote server passes cmd to the shell for interpretation. A Session only accepts one call to Run, Start, Shell, Output, or CombinedOutput.
(cmd string)
| 60 | // A Session only accepts one call to Run, Start, Shell, Output, |
| 61 | // or CombinedOutput. |
| 62 | Run(cmd string) error |
| 63 | |
| 64 | // Close the session |
| 65 | Close() error |
no outgoing calls