source: TOOLS/ConsoGENCMIP6/launch_jobs.sh @ 2524

Last change on this file since 2524 was 2524, checked in by labetoulle, 6 years ago

plot_store.py : plot initial volume in addition to current volume.

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/bin/bash
2#
3# Cron to keep track of core usage for GENCMIP6 project.
4# To be executed every hour
5# ======================================================================
6
7# Initialize module command
8# =========================
9if [ -f /etc/bashrc ] ; then
10  . /etc/bashrc
11fi
12# Load python
13# ===========
14# python/2.7.3 is the default, but it comes with matplotlib 1.2,
15# which is too old (no context manager for PdfPages)
16module load python/2.7.8
17
18# Go to root directory
19# ====================
20ROOT_DIR=$( dirname $0 )
21cd ${ROOT_DIR}
22
23# Main script to get data
24# =======================
25script="run_pen_v2"
26printf "${script}\n"
27echo "--------------------"
28bin/${script}.sh
29rc=$?
30if [ ${rc} -ne 0 ] ; then
31  echo "${script} terminated abnormally"
32  exit
33else
34  echo "${script} OK"
35fi
36
37# Plot running and pending jobs
38# =============================
39# -d : copy plot on dods
40script="plot_jobs"
41printf "\n${script}\n"
42echo "--------------------"
43bin/${script}.py -v
44rc=$?
45if [ ${rc} -ne 0 ] ; then
46  echo "${script} terminated abnormally"
47else
48  echo "${script} OK"
49fi
50
51printf "\nEnd of script OK\n"
52
Note: See TracBrowser for help on using the repository browser.