#!/bin/bash export TMPDIR=/tmp singularity exec -H "$(pwd):/home" -B /cvmfs /cvmfs/comet.egi.eu/ICEDUST_CMAKE/icedust.simg/ ./produce_dstrm.sh_DIRAC_CVMFS $1 # No, I think this needs a slightly different argument. The upstream files have the same proton file and the input is taken as such. However in this case We have a different input file for everything. Current;y removed the "%s $num" line so that RT_IDX is actually just the run number argument we enter $1, this should be fine? Each rootracker file is treated as an independent job. But this means if I do $1 = 0 then it will only take my first rootracker file. What I NEED it to do is do all rootracker files, yes? because $1 is not supposed to be the argument for which job to do, but rather how many jobs to do. # Yes, okay, what actually needs to happen is that $1 is the argument for how many jobs, which is passed through as the random number used. BUT internally, within produce_... , this should do a loop of $num jobs, yes? Have a look at the dstrm cfg...