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