diff --git a/MAC/Services/src/PipelineControl.py b/MAC/Services/src/PipelineControl.py index 8fb09299fd0b8051e9252de5f57f31f601ddb489..ac3746191f0099b8bf39cb6318ddc05040144e35 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: