|
@@ -266,7 +266,7 @@ if (( leg_end_epoch < run_end_epoch )) ; then
|
|
#[[ $@ == *local* ]] && exec $0 $@ || scontrol requeue $SLURM_JOB_ID #TODO: factorize this
|
|
#[[ $@ == *local* ]] && exec $0 $@ || scontrol requeue $SLURM_JOB_ID #TODO: factorize this
|
|
if [[ "$@" == *"local"* ]] ; then
|
|
if [[ "$@" == *"local"* ]] ; then
|
|
exec "$0" "$@"
|
|
exec "$0" "$@"
|
|
- elif [[ "sbatch" == *"sbatch"* ]] ; then
|
|
|
|
|
|
+ elif [ "${submit_command}" == *sbatch* ] ; then
|
|
sbatch $0 $@ | awk '{print $4}' >> ${run_dir}/.coral_jobs
|
|
sbatch $0 $@ | awk '{print $4}' >> ${run_dir}/.coral_jobs
|
|
else
|
|
else
|
|
"qsub" -v PBS_OPTIONS="$@" "$0" | tee -a coral_jobs
|
|
"qsub" -v PBS_OPTIONS="$@" "$0" | tee -a coral_jobs
|