Oct-27-2022, 02:04 PM
Instead of importing
concurrent.futures
and using ThreadPoolExecutor you just do it in a loopfor command in commands_list: subproces.run(command)That way you get commands one by one from commands_list, assigning each to command in the for loop then run it. When first command returns ( finish execution ) next follows.