Talk:Batch Jobs

From bwHPC Wiki
Jump to: navigation, search

2017-07-19: Attention: this article is going to be obsolete soon, KIT is about to release a quick guide. This articles is going to be splitted into several separate articles.


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 ... ##