source: TOOLS/ConsoGENCMIP6/launch_jobs.sh @ 2437

Last change on this file since 2437 was 2437, checked in by labetoulle, 9 years ago

Add plot_bilan_jobs.py and do some cleaning

  • Property svn:executable set to *
File size: 1.1 KB
RevLine 
[2431]1#!/bin/bash
2#
3# Cron to keep track of core usage for GENCMIP6 project.
[2432]4# To be executed every hour
[2431]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# ====================
[2437]20cd ${HOME}/ConsoGENCMIP6/
[2431]21
22# Main script to get data
23# =======================
[2432]24script="run_pen_v2"
[2431]25printf "${script}\n"
26echo "--------------------"
[2432]27bin/${script}.sh
[2431]28rc=$?
29if [ ${rc} -ne 0 ] ; then
30  echo "${script} terminated abnormally"
31  exit
32else
33  echo "${script} OK"
34fi
35
[2432]36# Plot running and pending jobs
37# =============================
[2431]38# -d : copy plot on dods
[2432]39script="plot_jobs"
[2431]40printf "\n${script}\n"
41echo "--------------------"
42bin/${script}.py -d
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.