I have the following code:
import os
commands = [r"cd c:\bugs\*722857\*722857 && chrome.exe --no-sandbox --single-process ..\..\cr-1195650-cve-2021-30588-stepped.html",
r"cd c:\bugs\*722857\*722857 && chrome.exe --no-sandbox --single-process --js-flags=-expose-gc ..\..\cr-1057593-cve-2020-6428-stepped.html",
r"cd c:\bugs\*722857\*722857 && chrome.exe --no-sandbox --single-process ..\..\cr-1032000-stepped.html",
]
for i in commands:
os.system(i)
I would like to save the output of each command, either as a string or list of strings. Any advice?