added shell=True to gstat Popen

This commit is contained in:
Marc Mance
2024-08-02 15:50:53 -04:00
parent 7ce7e1c3f5
commit c6d9aedcf7

View File

@@ -449,7 +449,9 @@ def main():
with open("gstat.csv", "a") as output_file: with open("gstat.csv", "a") as output_file:
# Create a Popen object with stdout redirected to the file # Create a Popen object with stdout redirected to the file
process = subprocess.Popen(gstat_command, stdout=output_file) process = subprocess.Popen(
gstat_command, stdout=output_file, shell=True
)
collect_data(minutes) collect_data(minutes)