[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Condor submit file and process number

"Jim P. Boughton" wrote:
> Hi all,
>         Is there a way to change the process number that
> condor starts with?  I am trying to queue a large number
> of jobs where the filenames are numbered starting with
> 50001, instead of 0.  I am having a hard time finding a
> way to deal with the change in numbers of digits (e.g. going
> from 9 to 10) when constructing the input filename.  Any
> suggestions?

Why not change the file suffix to start from zero, 
e.g., rename/symlink the original input files:

# Bring the file suffix to the range 0 ... NPROC-1
for ((i=0; i < NPROC; i++)) 
  n=$((50001 + $i))
  ln -s input.$n input.$i

# condor_submit ...