Changeset 7452 for trunk/MagicSoft


Ignore:
Timestamp:
12/12/05 13:40:01 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7451 r7452  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20 2005/12/12 Daniela Dorner
     21
     22   * datacenter/scripts/rmlocks:
     23     - fixed condition for removing lock-file
     24
     25   * datacenter/scripts/linkmc:
     26     - improved handling of directories
     27
     28
     29
    2030 2005/12/12 Thomas Bretz
    2131
  • trunk/MagicSoft/Mars/datacenter/scripts/linkmc

    r7448 r7452  
    183183      continue
    184184   fi
     185
     186   cont=`echo $dir | cut -d/ -f6`
     187   if [ "$cont" == "" ]
     188   then
     189      continue
     190   fi
     191
    185192   date=`echo $dir | cut -c 22-25,27,28,30,31`
    186193# workaround due to 5digit runnumber for data with runnumber < 35487
  • trunk/MagicSoft/Mars/datacenter/scripts/rmlocks

    r7395 r7452  
    3434for file in ${files[@]}
    3535do
    36    filedate=`date +%H -r $file`
    37    now=`date +%H`
    38    compdate=`expr $now - 13 + 24`
    39 #   echo "date: "$filedate
    40 #   echo "now: " $now
    41 #   echo "comp: " $compdate
    42    filedate2=`expr $filedate + 24`
    43    
    44    if [ $compdate -gt $filedate2 ] || [ $filedate -gt $now ]
     36   filedate=`date +%Y%j%H%M -r $file`
     37   #date to compare: now - 12hours
     38   compdate=`date +%Y%j%H%M --date="-12hour"`
     39
     40   if [ $compdate -gt $filedate ]
    4541   then
    4642      rm -v $file
    4743      echo "date:  "$filedate
    48       echo "date2: "$filedate2
    49       echo "now:   "$now
    5044      echo "comp:  "$compdate
    5145      date
Note: See TracChangeset for help on using the changeset viewer.