From 4ce42b83f88f32df6de3e947a5eeafa1895425cd Mon Sep 17 00:00:00 2001
From: Daniel van der Schuur <schuur@astron.nl>
Date: Wed, 8 Nov 2017 08:26:07 +0000
Subject: [PATCH] -Added logging of central_commands.sh.

---
 applications/apertif/commissioning/main.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/applications/apertif/commissioning/main.py b/applications/apertif/commissioning/main.py
index 59fcb38dcc..e81188ea9d 100644
--- a/applications/apertif/commissioning/main.py
+++ b/applications/apertif/commissioning/main.py
@@ -162,9 +162,10 @@ for lcu in LCUS:
 if tc.unbStr == '':
     pass
 else:
-    cmd = '. $RADIOHDL/applications/apertif/commissioning/central_commands.sh ' + tc.appStr + ' ' + tc.telStr + ' ' + tc.unbStr + ' ' + tc.optStr + ' ' + tc.polStr
-    print 'ccu-corr'+':$ '+cmd
-    shell.ssh_cmd('ccu-corr', cmd, tc)
+    subcommand = '. $RADIOHDL/applications/apertif/commissioning/central_commands.sh ' + tc.appStr + ' ' + tc.telStr + ' ' + tc.unbStr + ' ' + tc.optStr + ' ' + tc.polStr
+    command = subcommand + ' | tee ~/central_commands.log '
+    print 'ccu-corr'+':$ '+command
+    shell.ssh_cmd('ccu-corr', command, tc)
 
 ###############################################################################
 # Wait until remote dish commands are done
-- 
GitLab