aboutsummaryrefslogtreecommitdiff
path: root/rumba/ssh_support.py
diff options
context:
space:
mode:
authorVincenzo Maffione <v.maffione@gmail.com>2017-04-12 16:53:46 +0200
committerVincenzo Maffione <v.maffione@gmail.com>2017-04-12 21:18:20 +0200
commit780f55e8d41f855d76bd24dbb106016d06da77c1 (patch)
tree8bdc100b52e3fa158ec6a23221fc44f54478cb98 /rumba/ssh_support.py
parent970263d8c3b11703d8bcf9017295c0238f9e581b (diff)
downloadrumba-780f55e8d41f855d76bd24dbb106016d06da77c1.tar.gz
rumba-780f55e8d41f855d76bd24dbb106016d06da77c1.zip
ssh_support: prepend PATH extension to every command
Diffstat (limited to 'rumba/ssh_support.py')
-rw-r--r--rumba/ssh_support.py2
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)