source: TOOLS/ConsoGENCMIP6/launch_jobs.sh @ 2460

Last change on this file since 2460 was 2460, checked in by labetoulle, 9 years ago
  • Use an INI config file
  • reaname "gencmip6" variables
  • 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# ====================
20cd ${HOME}/ConsoGENCMIP6/
21
22# Main script to get data
23# =======================
24script="run_pen_v2"
25printf "${script}\n"
26echo "--------------------"
27bin/${script}.sh
28rc=$?
29if [ ${rc} -ne 0 ] ; then
30  echo "${script} terminated abnormally"
31  exit
32else
33  echo "${script} OK"
34fi
35
36# Plot running and pending jobs
37# =============================
38# -d : copy plot on dods
39script="plot_jobs"
40printf "\n${script}\n"
41echo "--------------------"
42bin/${script}.py -v
43rc=$?
44if [ ${rc} -ne 0 ] ; then
45  echo "${script} terminated abnormally"
46else
47  echo "${script} OK"
48fi
49
50printf "\nEnd of script OK\n"
Note: See TracBrowser for help on using the repository browser.