Skip to content
Snippets Groups Projects
Commit 2d166a54 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

#1374: Use ssh -x to avoid seconds delay cause by unwanted X11 forwarding when doing os.spawnl().

parent e03b3525
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment