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 @ 1919

Last change on this file since 1919 was 1576, checked in by ctlod, 15 years ago

NVTK: allow to manage multiple experiences in parallel, see ticket: #514

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 752 bytes
RevLine 
[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]18REXPE=$1
[1356]19CONFS=$2
[695]20LJOBS=qstat
21
22JOBS_LIST=` ${LJOBS} |  grep -c ${CONFS}`
23if [ ${JOBS_LIST} = 0 ]
24then
25    sleep 60
[1576]26    ./assessment.ksh ${REXPE} &
[695]27    exit
28fi
29sleep 300
[1576]30./cron_jobs.ksh ${REXPE} ${CONFS} &
[695]31exit
32
Note: See TracBrowser for help on using the repository browser.