[Answer]-Trying to call a shell command with Python, gets nothing

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

Leave a comment