diff options
Diffstat (limited to 'yardstick/ssh.py')
-rw-r--r-- | yardstick/ssh.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/yardstick/ssh.py b/yardstick/ssh.py index 339f834b7..2816a1c7d 100644 --- a/yardstick/ssh.py +++ b/yardstick/ssh.py @@ -261,3 +261,8 @@ class SSH(object): with SCPClient(client.get_transport()) as scp: scp.put(files, remote_path, recursive) + + # keep shell running in the background, e.g. screen + def send_command(self, command): + client = self._get_client() + client.exec_command(command, get_pty=True) |