diff options
Diffstat (limited to 'tester')
-rwxr-xr-x | tester | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -157,6 +157,7 @@ class System(object): def runcmd(self, argv, user='root', chdir='.', **kwargs): print(str(self) + 'Running command as ' + user + ': ' + argv[-1]) ssh_cmd = ['ssh', '-o', 'StrictHostKeyChecking=no', + '-o', 'BatchMode=yes', '-o', 'UserKnownHostsFile=/dev/null', self.ssh_host(user)] cmd = ['sh', '-c', 'cd "$1" && shift && exec "$@"', '-', chdir] cmd += argv |