From 305d3b2ab602c1924c946f28148d6dad630b4ab3 Mon Sep 17 00:00:00 2001 From: Lucia Guevgeozian Odizzio Date: Thu, 30 Jan 2014 15:51:07 +0100 Subject: [PATCH 1/1] Adding BatchMode=yes for rexec func --- src/nepi/util/sshfuncs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nepi/util/sshfuncs.py b/src/nepi/util/sshfuncs.py index 1e3b1a8f..d4d02ffa 100644 --- a/src/nepi/util/sshfuncs.py +++ b/src/nepi/util/sshfuncs.py @@ -239,6 +239,7 @@ def rexec(command, host, user, '-o', 'ConnectionAttempts=3', '-o', 'ServerAliveInterval=30', '-o', 'TCPKeepAlive=yes', + '-o', 'Batchmode=yes', '-l', user, hostip or host] if persistent and openssh_has_persist(): @@ -291,7 +292,7 @@ def rexec(command, host, user, stdout = subprocess.PIPE, stdin = subprocess.PIPE, stderr = subprocess.PIPE) - + # attach tempfile object to the process, to make sure the file stays # alive until the process is finished with it proc._known_hosts = tmp_known_hosts -- 2.43.0