source:
trunk/NVTK/INSTALL/JOBS/cron_jobs.ksh
@
1155
Last change on this file since 1155 was 1155, checked in by ctlod, 16 years ago | |
---|---|
|
|
File size: 905 bytes |
Line | |
---|---|
1 | #!/usr/bin/ksh |
2 | # $Id$ |
3 | ###################################################### |
4 | # Original : C. Talandier for ESOPA |
5 | # Contact : opatlod@locean-ipsl.upmc.fr |
6 | # |
7 | # This script is launched by the lance_batch.ksh script |
8 | # for a given configuration. |
9 | # It aims to (for each standard configuration) check if |
10 | # there are jobs in queue associated with the considered |
11 | # configuration. |
12 | # If jobs are still in queue it re-launched itself either |
13 | # it launchs the assessment.ksh script |
14 | ###################################################### |
15 | |
16 | #set -xv |
17 | |
18 | CONF=$1 |
19 | LJOBS=qstat |
20 | |
21 | if [ ${CONF} == 'ORCA2_LIM' ] ; then |
22 | CONFS=ORCA2 |
23 | elif [ ${CONF} == 'GYRE_LOBSTER' ] ; then |
24 | CONFS=GYRE_ |
25 | elif [ ${CONF} == 'ZAGRIF' ] ; then |
26 | CONFS=ZAGRI |
27 | else |
28 | CONFS=${CONF} |
29 | fi |
30 | |
31 | JOBS_LIST=` ${LJOBS} | grep -c ${CONFS}` |
32 | if [ ${JOBS_LIST} = 0 ] |
33 | then |
34 | sleep 60 |
35 | ./assessment.ksh ${CONF} yes & |
36 | exit |
37 | fi |
38 | sleep 300 |
39 | ./cron_jobs.ksh ${CONF} & |
40 | exit |
41 |
Note: See TracBrowser
for help on using the repository browser.