I am running a Transporter command, which prints a log of what is happening to the prompt.
How would I re-direct all the print statements to a separate file called transporter_log.txt in the same folder as the script is running from? Something like -
log_file = open(PATH, 'w') subprocess.call(shlex.split("/usr/local//iTMSTransporter -m verify...") log_file.write(...)