I would like to use
subprocess.check_call(cmd)
with the stdin argument. Most tutorials I've found so far will recommend using Popen
directly (e.g., here), but I really need the exception if cmd
errors out.
Any hint on how to get
import subprocess
subprocess.check_call('patch -p1 < test.patch')
to work properly?