11 lines
329 B
Bash
Executable file
11 lines
329 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# input 1 => jobfile with 1 command per line
|
|
# input 2 => number of jobs per nodes to process within 24h with SLURM
|
|
|
|
JOBFILE=code/ds003416_mriqc.jobs
|
|
nodejobs=2200
|
|
|
|
# splitting the ds003416_mriqc.jobs file according to node distribution
|
|
cat ${JOBFILE} | parallel -j1 --pipe -N${nodejobs} 'cat > code/jobs/job_{#}'
|
|
|