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