From 2d166a546e854a48bd395827b76bf6ebf304ff94 Mon Sep 17 00:00:00 2001 From: Erik Kooistra <kooistra@astron.nl> Date: Tue, 21 Nov 2017 15:28:32 +0000 Subject: [PATCH] #1374: Use ssh -x to avoid seconds delay cause by unwanted X11 forwarding when doing os.spawnl(). --- applications/apertif/commissioning/main.py | 2 +- applications/apertif/commissioning/run_command_on_lcus.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/apertif/commissioning/main.py b/applications/apertif/commissioning/main.py index e81188ea9d..98550d139e 100644 --- a/applications/apertif/commissioning/main.py +++ b/applications/apertif/commissioning/main.py @@ -225,7 +225,7 @@ print 'cmd = %s' % cmd shell.ssh_cmd(LCUS[0], cmd, tc) # We are now at ~bsn_init_sec-1. Enable the data path on the next PPS for lcu in LCUS: - cmd = ['/usr/bin/ssh', 'ssh', lcu, 'python', '$UPE/peripherals/util_bsn_source.py', '--unb', UNBS_BF, '--bn', '0:3', '-n', '1'] + cmd = ['/usr/bin/ssh', 'ssh', '-x', lcu, 'python', '$UPE/peripherals/util_bsn_source.py', '--unb', UNBS_BF, '--bn', '0:3', '-n', '1'] print cmd os.spawnl(os.P_NOWAIT, *cmd) diff --git a/applications/apertif/commissioning/run_command_on_lcus.py b/applications/apertif/commissioning/run_command_on_lcus.py index be2927c527..75fc203504 100644 --- a/applications/apertif/commissioning/run_command_on_lcus.py +++ b/applications/apertif/commissioning/run_command_on_lcus.py @@ -57,7 +57,7 @@ tc.append_log(0, lcu_str[:-1]) tc.append_log(0, 'Issue parallel command') cmd_str = tc.gpString for lcu in LCUS: - lcu_cmd = ['/usr/bin/ssh', 'ssh', lcu, cmd_str] + lcu_cmd = ['/usr/bin/ssh','ssh', '-x', lcu, cmd_str] print lcu_cmd os.spawnl(os.P_NOWAIT, *lcu_cmd) -- GitLab