Difference between revisions of "Talk:Batch Jobs Moab"

From bwHPC Wiki
Jump to: navigation, search
(Created page with "This article is way too long, and should be split into several articles. Most important, we need to emphasis on best practice guides.")
 
Line 1: Line 1:
 
This article is way too long, and should be split into several articles. Most important, we need to emphasis on best practice guides.
 
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.
  +
<pre>
  +
#!/bin/bash
  +
#MSUB -l signal=15@120
  +
cleanup(){
  +
echo "entering cleanup routing"
  +
exit 0
  +
}
  +
trap cleanup 2 15
  +
  +
## ... do here main routine ... ##
  +
</pre>

Revision as of 12:11, 18 May 2016

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