in tpch/tpchgen.py [0:0]
def run_and_log_output(cmd: str, log_file: str):
print(f"Executing: {cmd}; writing output to {log_file}")
with open(log_file, "w") as file:
subprocess.run(cmd, shell=True, check=True, stdout=file, stderr=subprocess.STDOUT)