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 trunk/VALID/2INSTALL/JOBS – NEMO

source: trunk/VALID/2INSTALL/JOBS/cron_jobs.ksh @ 1128

Last change on this file since 1128 was 795, checked in by ctlod, 16 years ago

Modifications in NVTK's scripts related to the GYRE_LOBSTER configuration, see ticket:#52

  • Property svn:executable set to *
File size: 898 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} == 'GYRE_LOBSTER' ] ; then
23CONFS=GYRE_
24elif [ ${CONF} == 'ZAGRIF' ] ; then
25CONFS=ZAGRI
26else
27CONFS=${CONF}
28fi
29
30JOBS_LIST=` ${LJOBS} |  grep -c ${CONFS}`
31if [ ${JOBS_LIST} = 0 ]
32then
33    sleep 60
34    ./assessment.ksh ${CONF} yes &
35    exit
36fi
37sleep 300
38./cron_jobs.ksh ${CONF} &
39exit
40
Note: See TracBrowser for help on using the repository browser.