Perhaps this class should generate the following script named runjobs.local: #!/bin/sh if [ $# -ne 2 ] ; then echo "$0 <start task id> <end task id>" echo "" echo "Runs sequence of CHM tasks" echo "" echo "Ex: $0 1 50" exit 1 fi start=$1 end=$2 for Y in `seq $start $end` ; do outfile="/fakechmjob/gordon2/chmrun/stdout/${Y}.out" echo "HOST: $HOSTNAME" > $outfile echo "DATE: `date`" >> $outfile echo "TASKID: $Y" >> $outfile /usr/bin/time -p /usr/bin/chmrunner.py $Y /fakechmjob/gordon2 --scratchdir /fakechmjob/gordon2/chmrun/tmp --log DEBUG >> $outfile 2>&1 exitcode=$? echo "chmrunner.py exited with code: $exitcode" >> $outfile done