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/NVTK/INSTALL/JOBS – NEMO

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

add svn Id

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