import subprocess
retcode = subprocess.call([\"/home/myuser/go.sh\", \"abc.txt\", \"xyz.txt\"])
When I run these 2 lines, will I be doing exactly t
I just got this error on Mac OS, while trying to call a one-line script using subprocess.call
. The script ran fine when called from the command line. After adding the shebang line #!/usr/bin/env sh
, it also ran fine via subprocess.call
.
It appears, while the shell has a default executor for text files marked executable, subprocess.Popen
does not.