source:
branches/DEV_r1879_FCM/NEMOGCM/NVTK/INSTALL/JOBS/cron_jobs.ksh
@
2513
Last change on this file since 2513 was 1576, checked in by ctlod, 15 years ago | |
---|---|
|
|
File size: 752 bytes |
Line | |
---|---|
1 | #!/usr/bin/ksh |
2 | # $Id$ |
3 | ###################################################### |
4 | # Original : C. Talandier for NEMO team |
5 | # Contact : nemo_st@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 | REXPE=$1 |
19 | CONFS=$2 |
20 | LJOBS=qstat |
21 | |
22 | JOBS_LIST=` ${LJOBS} | grep -c ${CONFS}` |
23 | if [ ${JOBS_LIST} = 0 ] |
24 | then |
25 | sleep 60 |
26 | ./assessment.ksh ${REXPE} & |
27 | exit |
28 | fi |
29 | sleep 300 |
30 | ./cron_jobs.ksh ${REXPE} ${CONFS} & |
31 | exit |
32 |
Note: See TracBrowser
for help on using the repository browser.