From: Lucia Guevgeozian Odizzio Date: Thu, 30 Jan 2014 14:51:07 +0000 (+0100) Subject: Adding BatchMode=yes for rexec func X-Git-Tag: nepi-3.1.0~136^2~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=305d3b2ab602c1924c946f28148d6dad630b4ab3;hp=02ff7254db0b25f0e09a988132fe1de22333f8d3;p=nepi.git Adding BatchMode=yes for rexec func --- 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