diff --git a/MAC/Services/src/PipelineControl.py b/MAC/Services/src/PipelineControl.py index d9aa782a72d10c19604115fd6e19ca3bf4121c53..abfab5bcc1bcbec4ccc74554293b8ec795f7bb00 100755 --- a/MAC/Services/src/PipelineControl.py +++ b/MAC/Services/src/PipelineControl.py @@ -102,15 +102,17 @@ def runCommand(cmdline, input=None): cmdline, stdin=subprocess.PIPE if input else None, stdout=subprocess.PIPE, - stderr=subprocess.STDOUT, + stderr=subprocess.PIPE, shell=True, universal_newlines=True ) # Feed input and wait for termination logger.debug("runCommand input: %s", input) - stdout, _ = communicate_returning_strings(proc, input) + stdout, stderr = communicate_returning_strings(proc, input) logger.debug("runCommand output: %s", stdout) + if stderr: + logger.warn("runCommand stderr output: %s", stderr) # Check exit status, bail on error if proc.returncode != 0: