Don't use a shell and thus avoid a whole class of problems
This commit is contained in:
parent
2a3a0d60cd
commit
8336f0d650
1 changed files with 1 additions and 1 deletions
2
command
2
command
|
@ -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…
Add table
Reference in a new issue