I'm trying to execute multiple linux commands using Python. Currently my script is
import os
os.system('cmd1')
os.system('cmd2')
os.system('cmd3')
os.system('cmd4')
I'm wondering if there's a way to execute cmd1 and cmd2 in parallel. After cmd1 and cmd2 finishes, the system will execute cmd3 and cmd4? Thanks!