Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use batch file to run multiple python scripts simultaneously

I have many python scripts and it is a pain to run each one of them individually by clicking them. How to make a batch file to run them all at once?

like image 982
Raebel Christo Avatar asked Apr 29 '26 12:04

Raebel Christo


1 Answers

just make a script like this backgrounding each task (on windows):

start /B python script1.py
start /B python script2.py
start /B python script3.py

on *nix:

python script1.py &
python script2.py &
python script3.py &

Assuming non of your script requires human interaction to run

like image 164
DDS Avatar answered May 02 '26 02:05

DDS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!