diff --git a/MAC/Services/src/ObservationControl2.py b/MAC/Services/src/ObservationControl2.py
index 73dd19197ca8f2500615414c4f7dbbc64a44bdef..a9f872d631aa22165cf717045d7968e39cb11cae 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)