New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
cron_jobs.ksh in branches/dev_001_SBC/VALID/2INSTALL/JOBS – NEMO

source: branches/dev_001_SBC/VALID/2INSTALL/JOBS/cron_jobs.ksh @ 718

Last change on this file since 718 was 695, checked in by ctlod, 17 years ago

NVTK installation

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