From 12e13f16b55f48710015e8392dca55b8ab4588aa Mon Sep 17 00:00:00 2001 From: Auke Klazema <klazema@astron.nl> Date: Fri, 20 Oct 2017 07:25:57 +0000 Subject: [PATCH] Task #11443: Fixed the bash command to get correct sasid in observationControl command --- MAC/Services/src/ObservationControl2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAC/Services/src/ObservationControl2.py b/MAC/Services/src/ObservationControl2.py index 73dd19197ca..a9f872d631a 100644 --- a/MAC/Services/src/ObservationControl2.py +++ b/MAC/Services/src/ObservationControl2.py @@ -67,7 +67,7 @@ class ObservationControlHandler(MessageHandlerInterface): pids = pid_line.split(' ') for pid in pids: - pid_sas_id = run("ps -p %s --no-heading -o command | awk -F[{}] '{ print $2; }'" % pid) + pid_sas_id = run("ps -p %s --no-heading -o command | awk -F[{}] '{ printf $2; }'" % pid) if pid_sas_id == sas_id: logger.info("Killing ObservationControl with PID: %s for SAS ID: %s", pid, sas_id) run('kill -SIGINT %s' % pid) -- GitLab