Changeset 7452
- Timestamp:
- 12/12/05 13:40:01 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7451 r7452 18 18 19 19 -*-*- 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 20 30 2005/12/12 Thomas Bretz 21 31 -
trunk/MagicSoft/Mars/datacenter/scripts/linkmc
r7448 r7452 183 183 continue 184 184 fi 185 186 cont=`echo $dir | cut -d/ -f6` 187 if [ "$cont" == "" ] 188 then 189 continue 190 fi 191 185 192 date=`echo $dir | cut -c 22-25,27,28,30,31` 186 193 # workaround due to 5digit runnumber for data with runnumber < 35487 -
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.