remove shell
This commit is contained in:
@@ -449,9 +449,7 @@ 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(
|
process = subprocess.Popen(gstat_command, stdout=output_file)
|
||||||
gstat_command, stdout=output_file, shell=True
|
|
||||||
)
|
|
||||||
|
|
||||||
collect_data(minutes)
|
collect_data(minutes)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user