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