1👍
✅
Is it possible your shell command is actually outputting to stderr?
To redirect stderr to stdout, try this to call the command:
p = subprocess.Popen(command, shell=True, bufsize=0, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
👤Dave
Source:stackexchange.com