start.sh (419B)
1 #!/bin/bash 2 3 # This will interlace to allow running on two system 4 # concurrently. Assuming start is set to 500,000 on the other system 5 6 START=0 7 END=8000000 8 STEP=500000 9 10 while [ $START -lt $END ]; do 11 NEXT=$((START + STEP)) 12 printf -v START_PADDED "%07d" $START 13 echo "Running: python3 read_and_check.py $START_PADDED $NEXT &" 14 python3 read_and_check.py "$START_PADDED" "$NEXT" & 15 START=$((NEXT + STEP)) 16 done 17 18 wait