Talk:Batch Jobs Moab

From bwHPC Wiki
Revision as of 12:11, 18 May 2016 by R Barthel (talk | contribs)
Jump to: navigation, search

This article is way too long, and should be split into several articles. Most important, we need to emphasis on best practice guides.

We should add: user defined pre-termination signals in batch jobs, and how to setup bash scripts for that.

#!/bin/bash
#MSUB -l signal=15@120
cleanup(){
  echo "entering cleanup routing"
  exit 0
}
trap cleanup 2 15

## ... do here main routine ... ##