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
|
Rev | Line | |
---|
[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 | # ========================= |
---|
| 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 | # ==================== |
---|
[2437] | 20 | cd ${HOME}/ConsoGENCMIP6/ |
---|
[2431] | 21 | |
---|
| 22 | # Main script to get data |
---|
| 23 | # ======================= |
---|
[2432] | 24 | script="run_pen_v2" |
---|
[2431] | 25 | printf "${script}\n" |
---|
| 26 | echo "--------------------" |
---|
[2432] | 27 | bin/${script}.sh |
---|
[2431] | 28 | rc=$? |
---|
| 29 | if [ ${rc} -ne 0 ] ; then |
---|
| 30 | echo "${script} terminated abnormally" |
---|
| 31 | exit |
---|
| 32 | else |
---|
| 33 | echo "${script} OK" |
---|
| 34 | fi |
---|
| 35 | |
---|
[2432] | 36 | # Plot running and pending jobs |
---|
| 37 | # ============================= |
---|
[2431] | 38 | # -d : copy plot on dods |
---|
[2432] | 39 | script="plot_jobs" |
---|
[2431] | 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.