Aug-26-2021, 12:16 AM
I changed 'capture_output=False':
Thank you for helping me with this!
'subprocess.run("net use U: "+"\\\\"+itm+"\\c$\\SMTS\\TDR_Logs", shell=True, timeout=2, capture_output=False)'and removed 'break'
except subprocess.TimeoutExpired: print(f"Server {itm} took too long to mount. Skipping...")and it seems fixed the problem.
Thank you for helping me with this!