Queue Manager : shell script command

From wiki
Jump to: navigation, search

Put these at the top of your shell script if you want this functionality, remove or add as desired:

#!/bin/bash
#$ -V     ## pass all environment variables to the job, VERY IMPORTANT
#$ -N echoTraining    ## job name
#$ -cwd    ## Execute the job from the current working directory
#$ -S /bin/bash    ## shell where it will run this job
#$ -j y    ## join error output to normal output
#$ -m e    ## email me at the end of a job
#$ -M email@st-andrews.ac.uk    # email address to send to
#$ -pe smp 8    # multi core jobs using 8 cores.