diff options
-rw-r--r-- | rumba/ssh_support.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rumba/ssh_support.py b/rumba/ssh_support.py index 1faa34e..4928a0d 100644 --- a/rumba/ssh_support.py +++ b/rumba/ssh_support.py @@ -55,6 +55,8 @@ def execute_commands(testbed, ssh_config, commands, time_out=3): for command in commands: print("%s@%s:%s >> %s" % (testbed.username, ssh_config.hostname, ssh_config.port, command)) + envars = '. /etc/profile;' + command = envars + ' ' + command stdin, stdout, stderr = ssh_client.exec_command(command) _print_stream(stdout) _print_stream(stderr) |