Ignore:
Timestamp:
11/11/05 15:02:20 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/rmlocks

    r7371 r7393  
    3434for file in ${files[@]}
    3535do
    36 #   echo "file: "$file
    37    filedate=`date +%Y%m%d%H -r $file`
    38    now=`date +%Y%m%d%H`
    39    compdate=`expr $now - 13`
     36   filedate=`date +%H -r $file`
     37   now=`date +%H`
     38   compdate=`expr $now - 13 + 24`
    4039#   echo "date: "$filedate
    4140#   echo "now: " $now
    4241#   echo "comp: " $compdate
    43    if [ $compdate -gt $filedate ]
     42   twelf=12
     43   if [ $compdate -gt $twelf ]
     44   then
     45      filedate2=`expr $filedate + 24`
     46   else
     47      filedate2=$filedate
     48   fi
     49   if [ $compdate -gt $filedate2 ] || [ $filedate2 -gt $now -a $now -gt $twelf ]
    4450   then
    45 #      echo "greater -> remove"
    4651      rm -v $file
     52      echo "date:  "$filedate
     53      echo "date2: "$filedate2
     54      echo "now:   "$now
     55      echo "comp:  "$compdate
    4756      date
    4857   fi
    4958done
    5059
    51 
    52 
Note: See TracChangeset for help on using the changeset viewer.