Go to advanced search

by noPULSar
Mon Dec 24, 2012 10:58 pm
Forum: Python
Topic: Multiple python scripts running at once
Replies: 5
Views: 16520

Re: Multiple python scripts running at once

Ok i got this working but its pretty messy. I think i have to improve my pwm scripts. 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...
by noPULSar
Mon Dec 24, 2012 9:52 pm
Forum: Python
Topic: Multiple python scripts running at once
Replies: 5
Views: 16520

Re: Multiple python scripts running at once

I need them to all start at the same time and maybe in loop.

More info:
I have 8LED connected to my GPIO ports and for each led i have a a script with a software pwm.
I can run them one at the time with ./1.py & for all 8 scripts and iv tried execfile(but this one starts them one after another).
by noPULSar
Mon Dec 24, 2012 9:33 pm
Forum: Python
Topic: Multiple python scripts running at once
Replies: 5
Views: 16520

Re: Multiple python scripts running at once

I know i didn't use a "?" in my original post but how do i do that?
by noPULSar
Mon Dec 24, 2012 8:57 pm
Forum: Python
Topic: Multiple python scripts running at once
Replies: 5
Views: 16520

Multiple python scripts running at once

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.

Go to advanced search