From c6d9aedcf7193cfdb2245d297fae80a6c6eaab8e Mon Sep 17 00:00:00 2001 From: Marc Mance Date: Fri, 2 Aug 2024 15:50:53 -0400 Subject: [PATCH] added shell=True to gstat Popen --- collect.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/collect.py b/collect.py index e568bca..3449d9c 100644 --- a/collect.py +++ b/collect.py @@ -449,7 +449,9 @@ def main(): with open("gstat.csv", "a") as output_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)