update DB table
This commit is contained in:
@@ -33,6 +33,8 @@ import datetime
|
||||
|
||||
def run_command_with_logging(cmd, log_file, cwd=None, env=None):
|
||||
"""Runs a command, logs output to file and stdout with ISO timestamps."""
|
||||
if env is None:
|
||||
env = os.environ.copy()
|
||||
with open(log_file, "a") as f:
|
||||
process = subprocess.Popen(
|
||||
cmd,
|
||||
|
||||
Reference in New Issue
Block a user