#!/bin/bash # Download-only driver, second batch (login node, nice'd). CODE=/path/to/TURKIC_OCR_CODE DATA=/path/to/TURKIC_OCR_DATA RAW=$DATA/data/raw/r5_print CAND=$RAW/_select PY=$CODE/.venv_print/bin/python f() { nice -n 10 env -u HF_TOKEN -u HUGGING_FACE_HUB_TOKEN $PY -I $CODE/scripts/r5_print/r5_print_fetch.py cand $CAND $RAW $1 $2; } f kaz_Cyrl 100 & f uzn_Latn 100 & f azj_Latn 100 & f tur_Latn 60 & wait echo fetch_all2_done