Changeset 7452 for trunk/MagicSoft/Mars/datacenter/scripts/rmlocks
- Timestamp:
- 12/12/05 13:40:01 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/rmlocks
r7395 r7452 34 34 for file in ${files[@]} 35 35 do 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 ] 45 41 then 46 42 rm -v $file 47 43 echo "date: "$filedate 48 echo "date2: "$filedate249 echo "now: "$now50 44 echo "comp: "$compdate 51 45 date
Note:
See TracChangeset
for help on using the changeset viewer.