Changeset 7393 for trunk/MagicSoft/Mars/datacenter/scripts/rmlocks
- Timestamp:
- 11/11/05 15:02:20 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/rmlocks
r7371 r7393 34 34 for file in ${files[@]} 35 35 do 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` 40 39 # echo "date: "$filedate 41 40 # echo "now: " $now 42 41 # 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 ] 44 50 then 45 # echo "greater -> remove"46 51 rm -v $file 52 echo "date: "$filedate 53 echo "date2: "$filedate2 54 echo "now: "$now 55 echo "comp: "$compdate 47 56 date 48 57 fi 49 58 done 50 59 51 52
Note:
See TracChangeset
for help on using the changeset viewer.