Ignore:
Timestamp:
12/12/05 13:40:01 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.