python subprocess.Poen with shell = False,

Published: 22/09/2019
python subprocess.Poen with shell = False,
Source: STACKOVERFLOW.COM

This command runs: process_1 = subprocess.Popen("gzip -dc " + infile + " > " + inter_file, cwd = base_dir, stdout = subprocess.PIPE, shell = True, universal_newlines = True) output, error = process_1.communicate() Now, I want to remove shell=True (I have many lines like the above and I'm suspecting Shell = True causes a memory leak): process_1 = subprocess.Popen(["gzip", "-dc", infile,

Read more
Related news
Comment
FACEBOOK