Last change
on this file since 2845 was
2845,
checked in by labetoulle, 9 years ago
|
[consogencmip6] Publish web data on ciclad
|
-
Property svn:executable set to
*
|
File size:
1.3 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 | # ========================= |
---|
9 | if [ -f /etc/bashrc ] ; then |
---|
10 | . /etc/bashrc |
---|
11 | fi |
---|
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) |
---|
16 | module load python/2.7.8 |
---|
17 | |
---|
18 | # Go to root directory |
---|
19 | # ==================== |
---|
20 | ROOT_DIR=$( dirname $0 ) |
---|
21 | cd ${ROOT_DIR} |
---|
22 | |
---|
23 | # Main script to get data |
---|
24 | # ======================= |
---|
25 | script="run_pen_v2" |
---|
26 | printf "${script}\n" |
---|
27 | echo "--------------------" |
---|
28 | bin/${script}.sh |
---|
29 | rc=$? |
---|
30 | if [ ${rc} -ne 0 ] ; then |
---|
31 | echo "${script} terminated abnormally" |
---|
32 | exit |
---|
33 | else |
---|
34 | echo "${script} OK" |
---|
35 | fi |
---|
36 | |
---|
37 | # Plot running and pending jobs |
---|
38 | # ============================= |
---|
39 | # -d : copy plot on dods |
---|
40 | script="plot_jobs" |
---|
41 | printf "\n${script}\n" |
---|
42 | echo "--------------------" |
---|
43 | bin/${script}.py -v |
---|
44 | rc=$? |
---|
45 | if [ ${rc} -ne 0 ] ; then |
---|
46 | echo "${script} terminated abnormally" |
---|
47 | else |
---|
48 | echo "${script} OK" |
---|
49 | fi |
---|
50 | |
---|
51 | |
---|
52 | # Copy web files to ciclad |
---|
53 | # ======================== |
---|
54 | echo "=> Copy web files to ciclad" |
---|
55 | echo "===========================" |
---|
56 | rsync -var ${ROOT_DIR}/web/* igcmg@ciclad.ipsl.jussieu.fr:dods/ConsoGENCMIP6 |
---|
57 | |
---|
58 | |
---|
59 | printf "\nEnd of script OK\n" |
---|
60 | |
---|
Note: See
TracBrowser
for help on using the repository browser.