diff --git a/scripts/slurm_checkjob b/scripts/slurm_checkjob index 559f26d..d919b3e 100755 --- a/scripts/slurm_checkjob +++ b/scripts/slurm_checkjob @@ -2,7 +2,7 @@ # Wraper script for slurm job check # Args are the Job ID # Returns back Running, Finished, Pending or Unknown -# +# Ensure that slurm_submit and slurm_checkjob are in the PATH . ~/.local_settings may need to be updated JS=$(squeue -j $1 -o %t --noheader) if [ -z "$JS" ] ; then diff --git a/scripts/slurm_submit b/scripts/slurm_submit index 58459d8..0f5293e 100755 --- a/scripts/slurm_submit +++ b/scripts/slurm_submit @@ -3,9 +3,13 @@ # Wrapper script for Slurm batch submit # Args are submit script, outputfile, and error file # Return the job id via stdout +# Ensure that slurm_submit and slurm_checkjob are in the PATH . ~/.local_settings may need to be updated + +module purge +PATH=/usr/common/software/bin:/usr/common/mss/bin:/usr/common/nsg/bin:/opt/ovis/bin:/opt/ovis/sbin:/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin SUBMIT=$1 LOGFILE=$2 ERRFILE=$3 -sbatch -o $LOGFILE -e $ERRFILE $SUBMIT +sbatch -o $LOGFILE -e $ERRFILE $SUBMIT|sed 's/Submitted batch job //'