Changeset 4911


Ignore:
Timestamp:
07/30/10 13:18:57 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added kill nightly run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/cron/nightlyrun.sh

    r4819 r4911  
    3939
    4040#Get configuration
     41#Check that no other nightly run is running {{{1
     42if [ "$(ps aux | grep "nighltyrun\.sh" | grep -v "grep")" ]
     43then
     44        echo "WARNING: A nightly run is already running. Killing..."
     45
     46        for JOBID in $(ps aux | grep "nighltyrun\.sh" | grep -v "grep" | awk '{printf("%s\n",$2);}');
     47        do
     48                kill -9 $JOBID;
     49        done;
     50fi
     51#}}}
    4152#Source config file{{{1
    4253if [ $# -ne 1 ];
Note: See TracChangeset for help on using the changeset viewer.