I have a python script run.py :
def do(i):
Then I run this script:
python run.py 0 1000000
After 30 minutes, the script ends. But it is too long for me.
So, I create a bash script run.sh :
python run.py 0 200000 & python run.py 200000 400000 & python run.py 400000 600000 & python run.py 600000 800000 & python run.py 800000 1000000
Then I run this script:
bash run.sh
After 6 minutes, the script ends. Pretty good. I'm happy.
But I think there is another way to solve the problem (without creating a bash script), right?
source share