by gvalkov · 8y ago · 0 comments
from subprocess import run
run('foo | bar', shell=True, check=True)Shells are excellent at invoking commands and piping, as I said.
Doing things like piping with Python instead of a shell is indeed more complicated than it needs to be. That was my point ;)