Queue Manager : shell script command

From wiki
Revision as of 14:18, 8 May 2019 by PeterThorpe (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.