How to run multiple python scripts at the queue from the console?


Tell me how can I run multiple python scripts from the console in turn.

I tried using:
python *

but in this case, it only runs the first script and then the job is completed.

Prompt how better to make?
October 8th 19 at 00:55
2 answers
October 8th 19 at 00:57
for i in `ls /path/*.py`; do python $i; done — wait for completion of the previous
for i in `ls /path/*.py`; do python $i & done — not to wait for the previous run
October 8th 19 at 00:59
python /bla/ & python /bla/ &
Or using; if the next should be performed regardless of the exit code of the previous one.

Can be something like this yet:
for x in ls /path/to/*.py; do python $x; done - kayla.Rowe26 commented on October 8th 19 at 01:02
python /bla/ & python /bla/ & is not on the queue, and all. Take turns using && is necessary, or, as you said, using; - Jaclyn_Schuster commented on October 8th 19 at 01:05

Find more questions by tags Python