Hello,
I have 8 pythons scripts and i want them to run at once (like in multitasking).
Its the first time I program anything.
Thank you.
Code: Select all
./scriptname.py &
Code: Select all
import subprocess
from time import sleep
y=(0.1)
subprocess.Popen(["python", '1.py'])
sleep(y)
subprocess.Popen(["python", '2.py'])
sleep (y)
subprocess.Popen(["python", '3.py'])
sleep (y)
subprocess.Popen(["python", '4.py'])
sleep (y)
subprocess.Popen(["python", '5.py'])
sleep(y)
subprocess.Popen(["python", '6.py'])
sleep (y)
subprocess.Popen(["python", '7.py'])
sleep (y)
subprocess.Popen(["python", '8.py'])