Don't use a shell and thus avoid a whole class of problems

pull/3/head
Jeremy Katz 12 years ago
parent bd37864242
commit 24e10dc2e8

@ -11,7 +11,7 @@ import datetime
args = sys.argv[1:]
startd = datetime.datetime.now()
cmd = subprocess.Popen(args, shell=True,
cmd = subprocess.Popen(args, shell=False,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = cmd.communicate()

Loading…
Cancel
Save